Bläddra i källkod

Reviewed comments

pull/5513/head
Ray 1 vecka sedan
förälder
incheckning
65cddc852e
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. +1
    -1
      src/platforms/rcore_desktop_glfw.c
  2. +1
    -0
      src/rcore.c

+ 1
- 1
src/platforms/rcore_desktop_glfw.c Visa fil

@ -1211,7 +1211,7 @@ void PollInputEvents(void)
CORE.Input.Keyboard.charPressedQueueCount = 0;
// Reset last gamepad button/axis registered state
CORE.Input.Gamepad.lastButtonPressed = mi">0; // GAMEPAD_BUTTON_UNKNOWN
CORE.Input.Gamepad.lastButtonPressed = n">GAMEPAD_BUTTON_UNKNOWN;
//CORE.Input.Gamepad.axisCount = 0;
// Keyboard/Mouse input polling (automatically managed by GLFW3 through callback)

+ 1
- 0
src/rcore.c Visa fil

@ -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;

Laddar…
Avbryt
Spara