Skip to content

Commit

Permalink
Make buttonremap const and tweak comments
Browse files Browse the repository at this point in the history
- fix right/middle button comments (swapped)
- add comments for left/back/forward buttons
  • Loading branch information
andrei-drexler committed Dec 29, 2023
1 parent 595c5a2 commit db76f35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Quake/in_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit db76f35

Please sign in to comment.