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