You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: Managers/UInputMan.h
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -712,7 +712,8 @@ namespace RTE {
712
712
bool m_TrapMousePosPerPlayer[Players::MaxPlayerCount]; //!< Whether to trap the mouse position to the middle of the screen for each player during network multiplayer.
713
713
714
714
staticconstexprdouble c_GamepadAxisLimit = 32767.0; //!< Maximum axis value as defined by SDL (int16 max).
715
-
staticconstexprint c_AxisDigitalThreshold = 8192; //!< Digital Axis threshold value as defined by allegro.
715
+
staticconstexprint c_AxisDigitalPressedThreshold = 8192; //!< Digital Axis threshold value as defined by allegro.
716
+
staticconstexprint c_AxisDigitalReleasedThreshold = c_AxisDigitalPressedThreshold - 100; //!< Digital Axis release threshold, to debounce values.
716
717
717
718
#pragma region Input State Handling
718
719
/// <summary>
@@ -826,6 +827,11 @@ namespace RTE {
826
827
/// </summary>
827
828
voidUpdateJoystickAxis(std::vector<Gamepad>::iterator device, int axis, int newValue);
828
829
830
+
/// <summary>
831
+
/// Updates simulated digital joystick axis. This is called from Update().
832
+
/// </summary>
833
+
voidUpdateJoystickDigitalAxis();
834
+
829
835
/// <summary>
830
836
/// Connect a joystick or gamepad device and add it to the joystick list if a slot is available (up to max player count).
0 commit comments