|
@@ -1162,16 +1162,17 @@ RLAPI int GetCharPressed(void); // Get char presse
|
|
|
RLAPI void SetExitKey(int key); // Set a custom key to exit program (default is ESC)
|
|
|
|
|
|
// Input-related functions: gamepads
|
|
|
-RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available
|
|
|
-RLAPI const char *GetGamepadName(int gamepad); // Get gamepad internal name id
|
|
|
-RLAPI bool IsGamepadButtonPressed(int gamepad, int button); // Check if a gamepad button has been pressed once
|
|
|
-RLAPI bool IsGamepadButtonDown(int gamepad, int button); // Check if a gamepad button is being pressed
|
|
|
-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 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 SetGamepadMappings(const char *mappings); // Set internal gamepad mappings (SDL_GameControllerDB)
|
|
|
+RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available
|
|
|
+RLAPI const char *GetGamepadName(int gamepad); // Get gamepad internal name id
|
|
|
+RLAPI bool IsGamepadButtonPressed(int gamepad, int button); // Check if a gamepad button has been pressed once
|
|
|
+RLAPI bool IsGamepadButtonDown(int gamepad, int button); // Check if a gamepad button is being pressed
|
|
|
+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 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 SetGamepadMappings(const char *mappings); // Set internal gamepad mappings (SDL_GameControllerDB)
|
|
|
+RLAPI void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor); // Set gamepad vibration for both motors
|
|
|
|
|
|
// Input-related functions: mouse
|
|
|
RLAPI bool IsMouseButtonPressed(int button); // Check if a mouse button has been pressed once
|