Skip to content

Commit

Permalink
ogc: use more proper define for WIIMOTE index
Browse files Browse the repository at this point in the history
  • Loading branch information
mardy authored and WinterMute committed Jan 14, 2024
1 parent 1f5a2da commit 49d6a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/ogc/SDL_sysjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ static int OGC_JoystickOpen(SDL_Joystick *joystick, int device_index)
#ifdef __wii__
} else {
if (split_joysticks) {
if (index < MAX_GC_JOYSTICKS + MAX_WII_JOYSTICKS) {
if (index < WII_WIIMOTES_END) {
// wiimote
joystick->nbuttons = SDL_WII_NUM_BUTTONS_WIIMOTE;
joystick->naxes = 3;
Expand Down

0 comments on commit 49d6a61

Please sign in to comment.