shithub: qk1

Download patch

ref: 2eb12cbb704a50af2de2e064e6be56c8f5577028
parent: beeeaaeedf88878e8d978c3da20083dbc9246bc1
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Feb 4 18:26:57 EST 2024

sdl input: send mouse events when binding keys

--- a/in_sdl.c
+++ b/in_sdl.c
@@ -61,7 +61,7 @@
 			break;
 		case SDL_MOUSEBUTTONDOWN:
 		case SDL_MOUSEBUTTONUP:
-			if(mouseon && (b = event.button.button-1) >= 0 && b < nelem(mbuttons))
+			if((b = event.button.button-1) >= 0 && b < nelem(mbuttons))
 				Key_Event(mbuttons[b], event.type == SDL_MOUSEBUTTONDOWN);
 			break;
 		case SDL_KEYDOWN: