Wrong constant for ev.code handling
This commit is contained in:
parent
53901aecfd
commit
d879090ce9
|
|
@ -1577,7 +1577,7 @@ static void PollDrmJoystickEvents()
|
||||||
switch(ev.type)
|
switch(ev.type)
|
||||||
{
|
{
|
||||||
case EV_KEY:
|
case EV_KEY:
|
||||||
if (ev.code < MAX_GAMEPAD_BUTTONS)
|
if (ev.code < KEY_MAX)
|
||||||
{
|
{
|
||||||
printf("b %d = %d\n:", ev.code, ev.value);
|
printf("b %d = %d\n:", ev.code, ev.value);
|
||||||
CORE.Input.Gamepad.currentButtonState[i][ev.code] = ev.value;
|
CORE.Input.Gamepad.currentButtonState[i][ev.code] = ev.value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user