mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 09:06:29 -05:00
joystick/wiiu bugfix: Don't hardcode Gamepad device_index to 0
This commit is contained in:
@@ -193,7 +193,7 @@ static SDL_JoystickID WIIU_JoystickGetDeviceInstanceID(int device_index)
|
||||
static int WIIU_JoystickOpen(SDL_Joystick *joystick, int device_index)
|
||||
{
|
||||
/* Gamepad */
|
||||
if (device_index == 0) {
|
||||
if (WIIU_GetDeviceForIndex(device_index) == WIIU_DEVICE_GAMEPAD) {
|
||||
SDL_AddTouch(0, "WiiU Gamepad Touchscreen");
|
||||
joystick->nbuttons = sizeof(vpad_button_map) / sizeof(VPADButtons);
|
||||
joystick->naxes = 4;
|
||||
|
||||
Reference in New Issue
Block a user