qnx: support analog sticks

This commit is contained in:
Vladimir Serbinenko 2020-04-01 16:18:05 +02:00
parent ab34a0a34f
commit 2ff9bfb24d

View File

@ -835,6 +835,11 @@ static int16_t qnx_input_state(void *data,
if (qnx_is_pressed(qnx, joypad_info, binds[port], port, id))
return true;
break;
case RETRO_DEVICE_ANALOG:
if (binds[port])
return input_joypad_analog(qnx->joypad, joypad_info,
port, idx, id, binds[port]);
return 0;
case RETRO_DEVICE_KEYBOARD:
return qnx_keyboard_pressed(qnx, id);
case RETRO_DEVICE_POINTER: