mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(Apple HID) Mundane style nits
This commit is contained in:
parent
5d49f7671b
commit
43fe95ce93
@ -96,7 +96,7 @@ static int16_t apple_hid_joypad_axis(unsigned port, uint32_t joyaxis)
|
||||
|
||||
static void hid_pad_connection_send_control(void *data, uint8_t* data_buf, size_t size)
|
||||
{
|
||||
struct pad_connection* connection = (struct pad_connection*)data;
|
||||
struct pad_connection *connection = (struct pad_connection*)data;
|
||||
|
||||
if (connection)
|
||||
IOHIDDeviceSetReport(connection->device_handle,
|
||||
@ -111,7 +111,7 @@ static void hid_device_input_callback(void* context, IOReturn result,
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
apple_input_data_t *apple = (apple_input_data_t*)driver->input_data;
|
||||
struct pad_connection* connection = (struct pad_connection*)context;
|
||||
struct pad_connection *connection = (struct pad_connection*)context;
|
||||
IOHIDElementRef element = IOHIDValueGetElement(value);
|
||||
uint32_t type = IOHIDElementGetType(element);
|
||||
uint32_t page = IOHIDElementGetUsagePage(element);
|
||||
@ -182,7 +182,7 @@ static void remove_device(void* context, IOReturn result, void* sender)
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
apple_input_data_t *apple = (apple_input_data_t*)driver->input_data;
|
||||
struct pad_connection* connection = (struct pad_connection*)context;
|
||||
struct pad_connection *connection = (struct pad_connection*)context;
|
||||
|
||||
if (connection && (connection->slot < MAX_USERS))
|
||||
{
|
||||
@ -207,9 +207,7 @@ static void hid_device_report(void* context, IOReturn result, void *sender,
|
||||
{
|
||||
struct pad_connection* connection = (struct pad_connection*)context;
|
||||
|
||||
if (!connection)
|
||||
return;
|
||||
|
||||
if (connection)
|
||||
pad_connection_packet(&hid_apple->slots[connection->slot], connection->slot,
|
||||
connection->data, reportLength + 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user