Fix Wii U stick input

This commit is contained in:
GaryOderNichts 2022-08-17 17:27:33 +02:00
parent 72981221ad
commit f4c1332159
2 changed files with 16 additions and 0 deletions

View File

@ -406,6 +406,14 @@ namespace Ship {
x *= scale; x *= scale;
y *= scale; y *= scale;
} }
if (isRightStick) {
getRightStickX(virtualSlot) = x;
getRightStickY(virtualSlot) = y;
} else {
getLeftStickX(virtualSlot) = x;
getLeftStickY(virtualSlot) = y;
}
} }
void WiiUController::CreateDefaultBinding(int32_t virtualSlot) { void WiiUController::CreateDefaultBinding(int32_t virtualSlot) {

View File

@ -279,6 +279,14 @@ namespace Ship {
x *= scale; x *= scale;
y *= scale; y *= scale;
} }
if (isRightStick) {
getRightStickX(virtualSlot) = x;
getRightStickY(virtualSlot) = y;
} else {
getLeftStickX(virtualSlot) = x;
getLeftStickY(virtualSlot) = y;
}
} }
void WiiUGamepad::CreateDefaultBinding(int32_t virtualSlot) { void WiiUGamepad::CreateDefaultBinding(int32_t virtualSlot) {