From 1d9fc21ce6e1aee7248b8ce7c83f1da5df6f57fc Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Sun, 27 Mar 2016 22:00:52 -0400 Subject: [PATCH] SP->key_code wasn't set to TRUE for KEY_MOUSE presses. Now it is. --- sdl1/pdckbd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdl1/pdckbd.c b/sdl1/pdckbd.c index 36779ba9..d5f5257b 100644 --- a/sdl1/pdckbd.c +++ b/sdl1/pdckbd.c @@ -113,7 +113,7 @@ bool PDC_check_key(void) Uint32 current = SDL_GetTicks(); int haveevent = SDL_PollEvent(&event); - /* if we have an event, or 30 ms have passed without a screen + /* if we have an event, or 30 ms have passed without a screen update, or the timer has wrapped, update now */ if (haveevent || @@ -303,6 +303,7 @@ static int _process_mouse_event(void) pdc_mouse_status.changes = PDC_MOUSE_WHEEL_RIGHT; } + SP->key_code = TRUE; return KEY_MOUSE; } @@ -337,6 +338,7 @@ static int _process_mouse_event(void) old_mouse_status = pdc_mouse_status; + SP->key_code = TRUE; return KEY_MOUSE; }