From e0d1fc31a604183c6d78b962012f4da78730a161 Mon Sep 17 00:00:00 2001 From: Adam Pippin Date: Fri, 17 Apr 2020 22:39:52 -0700 Subject: [PATCH] UserInput -- handle SIGNAL_STOP --- UserInput.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UserInput.cpp b/UserInput.cpp index b8be5aa..59f7683 100644 --- a/UserInput.cpp +++ b/UserInput.cpp @@ -8,6 +8,10 @@ int UserInput(int pid, unsigned int signal) { Kernel_signal_mask(pid, SIGNAL_START | SIGNAL_STOP | SIGNAL_TICK); } + if (signal & SIGNAL_STOP) + { + return 255; + } if (signal & SIGNAL_TICK) { if (Kernel_read_input(KERNEL_INPUT_BUTTON_A))