mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-27 01:09:17 -05:00
Reviewed comments
This commit is contained in:
@ -1211,7 +1211,7 @@ void PollInputEvents(void)
|
||||
CORE.Input.Keyboard.charPressedQueueCount = 0;
|
||||
|
||||
// Reset last gamepad button/axis registered state
|
||||
CORE.Input.Gamepad.lastButtonPressed = 0; // GAMEPAD_BUTTON_UNKNOWN
|
||||
CORE.Input.Gamepad.lastButtonPressed = GAMEPAD_BUTTON_UNKNOWN;
|
||||
//CORE.Input.Gamepad.axisCount = 0;
|
||||
|
||||
// Keyboard/Mouse input polling (automatically managed by GLFW3 through callback)
|
||||
|
||||
@ -4013,6 +4013,7 @@ bool IsGamepadButtonUp(int gamepad, int button)
|
||||
}
|
||||
|
||||
// Get the last gamepad button pressed
|
||||
// NOTE: Returns last gamepad button down, down->up change not considered
|
||||
int GetGamepadButtonPressed(void)
|
||||
{
|
||||
return CORE.Input.Gamepad.lastButtonPressed;
|
||||
|
||||
Reference in New Issue
Block a user