Переглянути джерело

Reviewed comments

pull/5513/head
Ray 1 тиждень тому
джерело
коміт
65cddc852e
2 змінених файлів з 2 додано та 1 видалено
  1. +1
    -1
      src/platforms/rcore_desktop_glfw.c
  2. +1
    -0
      src/rcore.c

+ 1
- 1
src/platforms/rcore_desktop_glfw.c Переглянути файл

@ -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 Переглянути файл

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

Завантаження…
Відмінити
Зберегти