InputSystem: rename function and corresponding enum

Returns the gamepad type. A confusion was made earlier when this was reverse engineered as this was used to determine the joystick deadzone index. But it is actually the controller type which it uses to index into the deadzone parameters.
This commit is contained in:
Kawe Mazidjatari 2025-01-13 15:54:08 +01:00
parent d049b2df1c
commit d3a2fd5238
2 changed files with 6 additions and 6 deletions

View File

@ -37,12 +37,12 @@ enum JoystickAxis_t
MAX_JOYSTICK_AXES, MAX_JOYSTICK_AXES,
}; };
enum JoystickDeadzoneIndex_t enum JoystickType_t
{ {
JOYSTICK_DEADZONE_NONE = 0, JOYSTICK_TYPE_NONE = 0,
JOYSTICK_DEADZONE_XBOX360, JOYSTICK_TYPE_XBOX360,
JOYSTICK_DEADZONE_XBOX1, JOYSTICK_TYPE_XBOX1,
JOYSTICK_DEADZONE_OTHER JOYSTICK_TYPE_PS4
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@ -75,7 +75,7 @@ public:
virtual int GetButtonPressedTick( const ButtonCode_t code ) const = 0; virtual int GetButtonPressedTick( const ButtonCode_t code ) const = 0;
/// Returns the joystick deadzone index for connected hardware. /// Returns the joystick deadzone index for connected hardware.
virtual JoystickDeadzoneIndex_t GetJoystickDeadzoneIndex( ) const = 0; virtual JoystickType_t GetJoystickType( ) const = 0;
/// DoNothing; VFTable padding. /// DoNothing; VFTable padding.
virtual bool ReturnFalse( ) const = 0; virtual bool ReturnFalse( ) const = 0;