1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-22 12:40:09 +00:00

Try to prevent another crash

This commit is contained in:
Twinaphex 2016-10-26 23:05:14 +02:00
parent ef2e0ead84
commit 26547be5ed

@ -493,6 +493,7 @@ static int16_t dinput_input_state(void *data,
return dinput_keyboard_pressed(di, id); return dinput_keyboard_pressed(di, id);
case RETRO_DEVICE_ANALOG: case RETRO_DEVICE_ANALOG:
if (binds[port])
ret = dinput_pressed_analog(di, binds[port], idx, id); ret = dinput_pressed_analog(di, binds[port], idx, id);
if (!ret && binds[port]) if (!ret && binds[port])
ret = input_joypad_analog(di->joypad, port, ret = input_joypad_analog(di->joypad, port,