mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
mfi_buttons should be only used now from within input/drivers_joypad/mfi_joypad.m
This commit is contained in:
parent
8b9b4242f7
commit
f906814abe
@ -190,10 +190,14 @@ int32_t cocoa_input_find_any_button(uint32_t port)
|
||||
return ret;
|
||||
|
||||
#ifdef HAVE_MFI
|
||||
ret = cocoa_input_find_any_button_ret(apple, apple->mfi_buttons[port], port);
|
||||
if (apple && apple->sec_joypad && apple->sec_joypad->get_buttons)
|
||||
{
|
||||
apple->sec_joypad->poll();
|
||||
ret = cocoa_input_find_any_button_ret(apple, apple->sec_joypad->get_buttons(port), port);
|
||||
|
||||
if (ret != -1)
|
||||
return ret;
|
||||
if (ret != -1)
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
return -1;
|
||||
|
@ -228,7 +228,7 @@ static uint64_t apple_gamecontroller_joypad_get_buttons(unsigned port)
|
||||
cocoa_input_data_t *apple = (cocoa_input_data_t*)driver->input_data;
|
||||
if (!apple)
|
||||
return 0;
|
||||
return apple->mfi_buttons;
|
||||
return apple->mfi_buttons[port];
|
||||
}
|
||||
|
||||
static int16_t apple_gamecontroller_joypad_axis(unsigned port, uint32_t joyaxis)
|
||||
|
Loading…
x
Reference in New Issue
Block a user