mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-10 21:48:17 -05:00
Merge pull request #1241 from GaryOderNichts/fix/wiiu-stick-input
Fix Wii U stick input
This commit is contained in:
commit
ad3efccb88
@ -406,6 +406,14 @@ namespace Ship {
|
||||
x *= scale;
|
||||
y *= scale;
|
||||
}
|
||||
|
||||
if (isRightStick) {
|
||||
getRightStickX(virtualSlot) = x;
|
||||
getRightStickY(virtualSlot) = y;
|
||||
} else {
|
||||
getLeftStickX(virtualSlot) = x;
|
||||
getLeftStickY(virtualSlot) = y;
|
||||
}
|
||||
}
|
||||
|
||||
void WiiUController::CreateDefaultBinding(int32_t virtualSlot) {
|
||||
|
@ -279,6 +279,14 @@ namespace Ship {
|
||||
x *= scale;
|
||||
y *= scale;
|
||||
}
|
||||
|
||||
if (isRightStick) {
|
||||
getRightStickX(virtualSlot) = x;
|
||||
getRightStickY(virtualSlot) = y;
|
||||
} else {
|
||||
getLeftStickX(virtualSlot) = x;
|
||||
getLeftStickY(virtualSlot) = y;
|
||||
}
|
||||
}
|
||||
|
||||
void WiiUGamepad::CreateDefaultBinding(int32_t virtualSlot) {
|
||||
|
Loading…
Reference in New Issue
Block a user