mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(iohidmanager) Buildfix
This commit is contained in:
parent
8f67989bf1
commit
9bd302b4ec
@ -169,6 +169,8 @@ static void iohidmanager_hid_device_input_callback(void *data, IOReturn result,
|
||||
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
||||
driver_t *driver = driver_get_ptr();
|
||||
cocoa_input_data_t *apple = (cocoa_input_data_t*)driver->input_data;
|
||||
struct iohidmanager_hid_adapter *adapter =
|
||||
(struct iohidmanager_hid_adapter*)data;
|
||||
#endif
|
||||
IOHIDElementRef element = IOHIDValueGetElement(value);
|
||||
uint32_t type = IOHIDElementGetType(element);
|
||||
@ -195,12 +197,8 @@ static void iohidmanager_hid_device_input_callback(void *data, IOReturn result,
|
||||
break;
|
||||
default:
|
||||
{
|
||||
static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 };
|
||||
int i;
|
||||
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
||||
struct iohidmanager_hid_adapter *adapter =
|
||||
(struct iohidmanager_hid_adapter*)data;
|
||||
#endif
|
||||
static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 };
|
||||
|
||||
for (i = 0; i < 4; i ++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user