Fix remaining crash on OSX

This commit is contained in:
Twinaphex 2016-10-26 10:34:24 +02:00
parent 8ce882c829
commit 90fbc09f82
1 changed files with 3 additions and 2 deletions

View File

@ -289,10 +289,11 @@ static int16_t cocoa_input_state(void *data,
break; break;
case RETRO_DEVICE_ANALOG: case RETRO_DEVICE_ANALOG:
#ifdef HAVE_MFI #ifdef HAVE_MFI
ret = input_joypad_analog(apple->sec_joypad, port, if (binds[port])
ret = input_joypad_analog(apple->sec_joypad, port,
idx, id, binds[port]); idx, id, binds[port]);
if (!ret && binds[port])
#endif #endif
if (!ret && binds[port])
ret = input_joypad_analog(apple->joypad, port, ret = input_joypad_analog(apple->joypad, port,
idx, id, binds[port]); idx, id, binds[port]);
return ret; return ret;