mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
Rename apple_joypad_has_interface to pad_connection_has_interface
This commit is contained in:
parent
e9239316f8
commit
30a255e70a
@ -76,7 +76,7 @@ void pad_connection_packet(uint32_t slot, uint8_t* data, uint32_t length);
|
||||
|
||||
/* Determine if connected joypad is a hidpad backed device.
|
||||
* If false, pad_connection_packet cannot be used */
|
||||
bool apple_joypad_has_interface(uint32_t slot);
|
||||
bool pad_connection_has_interface(uint32_t slot);
|
||||
|
||||
void apple_input_enable_icade(bool on);
|
||||
|
||||
|
@ -195,7 +195,7 @@ static void add_device(void* context, IOReturn result,
|
||||
|
||||
connection->slot = joypad_connection_connect(device_name, connection);
|
||||
|
||||
if (apple_joypad_has_interface(connection->slot))
|
||||
if (pad_connection_has_interface(connection->slot))
|
||||
IOHIDDeviceRegisterInputReportCallback(device,
|
||||
connection->data + 1, sizeof(connection->data) - 1,
|
||||
hid_device_report, connection);
|
||||
@ -324,7 +324,7 @@ void pad_connection_packet(uint32_t slot,
|
||||
}
|
||||
}
|
||||
|
||||
bool apple_joypad_has_interface(uint32_t slot)
|
||||
bool pad_connection_has_interface(uint32_t slot)
|
||||
{
|
||||
if (slot < MAX_PLAYERS && slots[slot].used)
|
||||
return slots[slot].iface ? true : false;
|
||||
|
@ -128,7 +128,7 @@ void pad_connection_packet(uint32_t pad,
|
||||
}
|
||||
}
|
||||
|
||||
bool apple_joypad_has_interface(uint32_t pad)
|
||||
bool pad_connection_has_interface(uint32_t pad)
|
||||
{
|
||||
if (pad < MAX_PLAYERS && slots[pad].used)
|
||||
return slots[pad].iface ? true : false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user