Skip to content

Commit 7c6150e

Browse files
committed
Fix analog triggers input
1 parent 4e253f6 commit 7c6150e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/streaming/InputManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ GamepadState MoonlightInputManager::getControllerState(int controllerNum,
217217
GamepadState gamepadState{
218218
.buttonFlags = 0,
219219
.leftTrigger = static_cast<unsigned char>(
220-
0xFFFF * (!specialKey ? lzAxis : 0)),
220+
0xFF * (!specialKey ? lzAxis : 0)),
221221
.rightTrigger = static_cast<unsigned char>(
222-
0xFFFF * (!specialKey ? rzAxis : 0)),
222+
0xFF * (!specialKey ? rzAxis : 0)),
223223
.leftStickX = static_cast<short>(
224224
0x7FFF * (!specialKey ? leftXAxis : 0)),
225225
.leftStickY = static_cast<short>(

0 commit comments

Comments
 (0)