diff --git a/input/qnx_input.c b/input/qnx_input.c index 16c6b2c16f..28aff73716 100644 --- a/input/qnx_input.c +++ b/input/qnx_input.c @@ -108,7 +108,7 @@ static void process_gamepad_event(void *data, screen_event_t screen_event, int t screen_get_event_property_iv(screen_event, SCREEN_PROPERTY_BUTTONS, &controller->buttons); uint64_t *state_cur = (uint64_t*)&qnx->pad_state[controller->port]; - int i; + //int i; *state_cur = 0; for (i = 0; i < 20; i++) @@ -334,7 +334,7 @@ static void process_keyboard_event(void *data, screen_event_t event, int type) if (flags & KEY_DOWN) { controller->buttons |= 1 << b; - *state_cur |= 1 << b + *state_cur |= 1 << b; } else controller->buttons &= ~(1<joypad, port, binds[port], id); + return input_joypad_pressed(qnx->joypad, port, (unsigned int)g_settings.input.binds[port], id); #ifdef HAVE_BB10 case RETRO_DEVICE_ANALOG: //Need to return [-0x8000, 0x7fff]