From 599d08b8bf1cfb10ab68c465ee31dd5e3418f8f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Tue, 10 Mar 2020 20:10:30 +0100 Subject: [PATCH] Fix Keyboard Stick Constant --- gui/src/streamsession.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gui/src/streamsession.cpp b/gui/src/streamsession.cpp index 2e427f8..cccab98 100644 --- a/gui/src/streamsession.cpp +++ b/gui/src/streamsession.cpp @@ -165,28 +165,28 @@ void StreamSession::HandleKeyboardEvent(QKeyEvent *event) keyboard_state.r2_state = press_event ? 0xff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_RIGHT_Y_UP): - keyboard_state.right_y = press_event ? -0x3fff : 0; + keyboard_state.right_y = press_event ? -0x7fff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_RIGHT_Y_DOWN): - keyboard_state.right_y = press_event ? 0x3fff : 0; + keyboard_state.right_y = press_event ? 0x7fff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_RIGHT_X_UP): - keyboard_state.right_x = press_event ? 0x3fff : 0; + keyboard_state.right_x = press_event ? 0x7fff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_RIGHT_X_DOWN): - keyboard_state.right_x = press_event ? -0x3fff : 0; + keyboard_state.right_x = press_event ? -0x7fff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_LEFT_Y_UP): - keyboard_state.left_y = press_event ? -0x3fff : 0; + keyboard_state.left_y = press_event ? -0x7fff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_LEFT_Y_DOWN): - keyboard_state.left_y = press_event ? 0x3fff : 0; + keyboard_state.left_y = press_event ? 0x7fff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_LEFT_X_UP): - keyboard_state.left_x = press_event ? 0x3fff : 0; + keyboard_state.left_x = press_event ? 0x7fff : 0; break; case static_cast(ControllerButtonExt::ANALOG_STICK_LEFT_X_DOWN): - keyboard_state.left_x = press_event ? -0x3fff : 0; + keyboard_state.left_x = press_event ? -0x7fff : 0; break; default: if(press_event)