From db76f35dfb90fbcf71b65b07e1eca350d4f785bb Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Fri, 29 Dec 2023 10:48:21 +0100 Subject: [PATCH] Make buttonremap const and tweak comments - fix right/middle button comments (swapped) - add comments for left/back/forward buttons --- Quake/in_sdl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c index 2196a6643..79560540b 100644 --- a/Quake/in_sdl.c +++ b/Quake/in_sdl.c @@ -80,13 +80,13 @@ static SDL_GameController *joy_active_controller = NULL; static qboolean no_mouse = false; -static int buttonremap[] = +static const int buttonremap[] = { - K_MOUSE1, - K_MOUSE3, /* right button */ - K_MOUSE2, /* middle button */ - K_MOUSE4, - K_MOUSE5 + K_MOUSE1, /* left button */ + K_MOUSE3, /* middle button */ + K_MOUSE2, /* right button */ + K_MOUSE4, /* back button */ + K_MOUSE5 /* forward button */ }; /* total accumulated mouse movement since last frame */