Wrong constant for ev.code handling

This commit is contained in:
Michael 2023-10-13 12:13:30 -04:00
parent 53901aecfd
commit d879090ce9

View File

@ -1577,7 +1577,7 @@ static void PollDrmJoystickEvents()
switch(ev.type)
{
case EV_KEY:
if (ev.code < MAX_GAMEPAD_BUTTONS)
if (ev.code < KEY_MAX)
{
printf("b %d = %d\n:", ev.code, ev.value);
CORE.Input.Gamepad.currentButtonState[i][ev.code] = ev.value;