This commit is contained in:
twinaphex 2020-07-19 03:20:41 +02:00
parent d97e590aaf
commit 285b0ec0bb
2 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ static int16_t libusb_hid_joypad_button(void *data,
/* Check hat. */
if (GET_HAT_DIR(joykey))
continue;
return 0;
else if (joykey < 32)
return (BIT256_GET(buttons, joykey) != 0);
return 0;

View File

@ -644,7 +644,7 @@ static void udev_joypad_get_buttons(unsigned port, input_bits_t *state)
BIT256_CLEAR_ALL_PTR(state);
}
static int16_t udev_joypad_axis(
static int16_t udev_joypad_axis_state(
const struct udev_joypad *pad,
unsigned port, uint32_t joyaxis)
{