|
|
@ -743,7 +743,7 @@ typedef enum { |
|
|
GAMEPAD_BUTTON_RIGHT_THUMB // Gamepad joystick pressed button right |
|
|
GAMEPAD_BUTTON_RIGHT_THUMB // Gamepad joystick pressed button right |
|
|
} GamepadButton; |
|
|
} GamepadButton; |
|
|
|
|
|
|
|
|
// Gamepad axis |
|
|
|
|
|
|
|
|
// Gamepad axes |
|
|
typedef enum { |
|
|
typedef enum { |
|
|
GAMEPAD_AXIS_LEFT_X = 0, // Gamepad left stick X axis |
|
|
GAMEPAD_AXIS_LEFT_X = 0, // Gamepad left stick X axis |
|
|
GAMEPAD_AXIS_LEFT_Y = 1, // Gamepad left stick Y axis |
|
|
GAMEPAD_AXIS_LEFT_Y = 1, // Gamepad left stick Y axis |
|
|
@ -1192,8 +1192,8 @@ RLAPI bool IsGamepadButtonDown(int gamepad, int button); // Check if a game |
|
|
RLAPI bool IsGamepadButtonReleased(int gamepad, int button); // Check if a gamepad button has been released once |
|
|
RLAPI bool IsGamepadButtonReleased(int gamepad, int button); // Check if a gamepad button has been released once |
|
|
RLAPI bool IsGamepadButtonUp(int gamepad, int button); // Check if a gamepad button is NOT being pressed |
|
|
RLAPI bool IsGamepadButtonUp(int gamepad, int button); // Check if a gamepad button is NOT being pressed |
|
|
RLAPI int GetGamepadButtonPressed(void); // Get the last gamepad button pressed |
|
|
RLAPI int GetGamepadButtonPressed(void); // Get the last gamepad button pressed |
|
|
RLAPI int GetGamepadAxisCount(int gamepad); // Get gamepad axis count for a gamepad |
|
|
|
|
|
RLAPI float GetGamepadAxisMovement(int gamepad, int axis); // Get axis movement value for a gamepad axis |
|
|
|
|
|
|
|
|
RLAPI int GetGamepadAxisCount(int gamepad); // Get axis count for a gamepad |
|
|
|
|
|
RLAPI float GetGamepadAxisMovement(int gamepad, int axis); // Get movement value for a gamepad axis |
|
|
RLAPI int SetGamepadMappings(const char *mappings); // Set internal gamepad mappings (SDL_GameControllerDB) |
|
|
RLAPI int SetGamepadMappings(const char *mappings); // Set internal gamepad mappings (SDL_GameControllerDB) |
|
|
RLAPI void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration); // Set gamepad vibration for both motors (duration in seconds) |
|
|
RLAPI void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration); // Set gamepad vibration for both motors (duration in seconds) |
|
|
|
|
|
|
|
|
|