mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
Try to prevent another crash
This commit is contained in:
parent
ef2e0ead84
commit
26547be5ed
@ -493,7 +493,8 @@ static int16_t dinput_input_state(void *data,
|
||||
return dinput_keyboard_pressed(di, id);
|
||||
|
||||
case RETRO_DEVICE_ANALOG:
|
||||
ret = dinput_pressed_analog(di, binds[port], idx, id);
|
||||
if (binds[port])
|
||||
ret = dinput_pressed_analog(di, binds[port], idx, id);
|
||||
if (!ret && binds[port])
|
||||
ret = input_joypad_analog(di->joypad, port,
|
||||
idx, id, settings->input.binds[port]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user