diff --git a/input/drivers_joypad/parport_joypad.c b/input/drivers_joypad/parport_joypad.c index bdd6d53d55..9eea69d9c7 100644 --- a/input/drivers_joypad/parport_joypad.c +++ b/input/drivers_joypad/parport_joypad.c @@ -336,7 +336,7 @@ static int16_t parport_joypad_button(unsigned port, uint16_t joykey) if (port >= DEFAULT_MAX_PADS) return 0; if (joykey < PARPORT_NUM_BUTTONS) - return (BIT32_GET(pad->buttons, joykey); + return BIT32_GET(pad->buttons, joykey); return 0; } diff --git a/input/include/hid_driver.h b/input/include/hid_driver.h index 9c1040754a..749c4ed0df 100644 --- a/input/include/hid_driver.h +++ b/input/include/hid_driver.h @@ -39,6 +39,8 @@ struct hid_driver bool (*query_pad)(void *handle, unsigned pad); void (*free)(const void *handle); int16_t (*button)(void *handle, unsigned pad, uint16_t button); + int16_t (*state)(void *data, rarch_joypad_info_t *joypad_info, + const struct retro_keybind *binds, unsigned port); void (*get_buttons)(void *handle, unsigned pad, input_bits_t *state); int16_t (*axis)(void *handle, unsigned pad, uint32_t axis); void (*poll)(void *handle);