From 730f00f02296dcc7e8f599f8fe49a14566594102 Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Fri, 6 Sep 2024 17:32:30 +1000 Subject: [PATCH] wiiu/joystick: nunchuck->nunchuk --- src/joystick/wiiu/SDL_wiiujoystick.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/joystick/wiiu/SDL_wiiujoystick.c b/src/joystick/wiiu/SDL_wiiujoystick.c index 19ba6c87ed..312921101f 100644 --- a/src/joystick/wiiu/SDL_wiiujoystick.c +++ b/src/joystick/wiiu/SDL_wiiujoystick.c @@ -551,14 +551,14 @@ static void WIIU_JoystickUpdate(SDL_Joystick *joystick) case WPAD_EXT_NUNCHUK: case WPAD_EXT_MPLUS_NUNCHUK: { for(int i = 0; i < joystick->nbuttons; i++) - if ((kpad.trigger | (kpad.nunchuck.trigger << 16)) & nunchuk_button_map[i]) + if ((kpad.trigger | (kpad.nunchuk.trigger << 16)) & nunchuk_button_map[i]) SDL_PrivateJoystickButton(joystick, (Uint8)i, SDL_PRESSED); for(int i = 0; i < joystick->nbuttons; i++) - if ((kpad.release | (kpad.nunchuck.release << 16)) & nunchuk_button_map[i]) + if ((kpad.release | (kpad.nunchuk.release << 16)) & nunchuk_button_map[i]) SDL_PrivateJoystickButton(joystick, (Uint8)i, SDL_RELEASED); - x1 = (int16_t) ((kpad.nunchuck.stick.x) * 0x7ff0); - y1 = (int16_t) -((kpad.nunchuck.stick.y) * 0x7ff0); + x1 = (int16_t) ((kpad.nunchuk.stick.x) * 0x7ff0); + y1 = (int16_t) -((kpad.nunchuk.stick.y) * 0x7ff0); SDL_PrivateJoystickAxis(joystick, 0, x1); SDL_PrivateJoystickAxis(joystick, 1, y1); break;