mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
d049b2df1c
commit
d3a2fd5238
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user