Update udev_joypad.c

This commit is contained in:
Autechre 2020-07-18 21:56:27 +02:00 committed by GitHub
parent 08ad00f5d3
commit f8d6cea02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -616,7 +616,7 @@ static int16_t udev_joypad_button(unsigned port, uint16_t joykey)
break;
case HAT_RIGHT_MASK:
if (pad->hats[h][0] > 0)
ret |= (1 << i):
ret |= (1 << i);
break;
case HAT_UP_MASK:
if (pad->hats[h][1] < 0)