mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 15:26:55 -05:00
Wii U: Fix WIIU_JoystickGetDevicePlayerIndex.
Was using the wrong WPAD IDs.
This commit is contained in:
parent
e2e7f27d37
commit
bd755159a8
|
|
@ -248,10 +248,10 @@ static int WIIU_JoystickGetDevicePlayerIndex(int device_index)
|
|||
int wiiu_device = WIIU_GetDeviceForIndex(device_index);
|
||||
switch (wiiu_device) {
|
||||
case WIIU_DEVICE_GAMEPAD: { return 0; }
|
||||
case WIIU_DEVICE_WPAD(1): { return 1; }
|
||||
case WIIU_DEVICE_WPAD(2): { return 2; }
|
||||
case WIIU_DEVICE_WPAD(3): { return 3; }
|
||||
case WIIU_DEVICE_WPAD(4): { return 4; }
|
||||
case WIIU_DEVICE_WPAD(0): { return 1; }
|
||||
case WIIU_DEVICE_WPAD(1): { return 2; }
|
||||
case WIIU_DEVICE_WPAD(2): { return 3; }
|
||||
case WIIU_DEVICE_WPAD(3): { return 4; }
|
||||
default: { return -1; }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user