Rename GamepadAxis enum to GamepadAxes (breaking change)

This commit is contained in:
M374LX 2025-05-30 15:23:54 -03:00
parent b9c2ecc447
commit 7e0ef5ae56
2 changed files with 2 additions and 2 deletions

View file

@ -1551,7 +1551,7 @@ static void ConfigureEvdevDevice(char *device)
// ABS_X, ABX_Y for one joystick ABS_RX, ABS_RY for the other and the Z axes for the
// shoulder buttons
// If these are now enumerated you get LJOY_X, LJOY_Y, LEFT_SHOULDERB, RJOY_X, ...
// That means they don't match the GamepadAxis enum
// That means they don't match the GamepadAxes enum
// This could be fixed
int axisIndex = 0;
for (int axis = ABS_X; axis < ABS_PRESSURE; axis++)

View file

@ -751,7 +751,7 @@ typedef enum {
GAMEPAD_AXIS_RIGHT_Y = 3, // Gamepad right stick Y axis
GAMEPAD_AXIS_LEFT_TRIGGER = 4, // Gamepad back trigger left, pressure level: [1..-1]
GAMEPAD_AXIS_RIGHT_TRIGGER = 5 // Gamepad back trigger right, pressure level: [1..-1]
} GamepadAxis;
} GamepadAxes;
// Material map index
typedef enum {