mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +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)
|
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
||||||
driver_t *driver = driver_get_ptr();
|
driver_t *driver = driver_get_ptr();
|
||||||
cocoa_input_data_t *apple = (cocoa_input_data_t*)driver->input_data;
|
cocoa_input_data_t *apple = (cocoa_input_data_t*)driver->input_data;
|
||||||
|
struct iohidmanager_hid_adapter *adapter =
|
||||||
|
(struct iohidmanager_hid_adapter*)data;
|
||||||
#endif
|
#endif
|
||||||
IOHIDElementRef element = IOHIDValueGetElement(value);
|
IOHIDElementRef element = IOHIDValueGetElement(value);
|
||||||
uint32_t type = IOHIDElementGetType(element);
|
uint32_t type = IOHIDElementGetType(element);
|
||||||
@ -195,12 +197,8 @@ static void iohidmanager_hid_device_input_callback(void *data, IOReturn result,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 };
|
|
||||||
int i;
|
int i;
|
||||||
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
static const uint32_t axis_use_ids[4] = { 48, 49, 50, 53 };
|
||||||
struct iohidmanager_hid_adapter *adapter =
|
|
||||||
(struct iohidmanager_hid_adapter*)data;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for (i = 0; i < 4; i ++)
|
for (i = 0; i < 4; i ++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user