mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Rename apple_joypad_packet to pad_connection_packet
This commit is contained in:
parent
14b17ed7d5
commit
4d14540997
@ -135,7 +135,7 @@ void btpad_packet_handler(uint8_t packet_type,
|
|||||||
if (connection && connection->state == BTPAD_CONNECTED
|
if (connection && connection->state == BTPAD_CONNECTED
|
||||||
&& (connection->channels[0] == channel ||
|
&& (connection->channels[0] == channel ||
|
||||||
connection->channels[1] == channel))
|
connection->channels[1] == channel))
|
||||||
apple_joypad_packet(connection->slot, packet, size);
|
pad_connection_packet(connection->slot, packet, size);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HCI_EVENT_PACKET:
|
case HCI_EVENT_PACKET:
|
||||||
|
@ -72,18 +72,12 @@ int32_t apple_joypad_connect_gcapi(void);
|
|||||||
|
|
||||||
void apple_joypad_disconnect(uint32_t slot);
|
void apple_joypad_disconnect(uint32_t slot);
|
||||||
|
|
||||||
void apple_joypad_packet(uint32_t slot, uint8_t* data, uint32_t length);
|
void pad_connection_packet(uint32_t slot, uint8_t* data, uint32_t length);
|
||||||
|
|
||||||
/* Determine if connected joypad is a hidpad backed device.
|
/* Determine if connected joypad is a hidpad backed device.
|
||||||
* If false, apple_joypad_packet cannot be used */
|
* If false, pad_connection_packet cannot be used */
|
||||||
bool apple_joypad_has_interface(uint32_t slot);
|
bool apple_joypad_has_interface(uint32_t slot);
|
||||||
|
|
||||||
/* This is implemented in the platform-specific
|
|
||||||
* portions of the input code */
|
|
||||||
void apple_joypad_send_hid_control(void *connect_data,
|
|
||||||
uint8_t* data, size_t size);
|
|
||||||
|
|
||||||
/* Main thread only */
|
|
||||||
void apple_input_enable_icade(bool on);
|
void apple_input_enable_icade(bool on);
|
||||||
|
|
||||||
void apple_input_enable_small_keyboard(bool on);
|
void apple_input_enable_small_keyboard(bool on);
|
||||||
|
@ -159,7 +159,7 @@ static void hid_device_report(void* context, IOReturn result, void *sender,
|
|||||||
struct pad_connection* connection = (struct pad_connection*)context;
|
struct pad_connection* connection = (struct pad_connection*)context;
|
||||||
|
|
||||||
if (connection)
|
if (connection)
|
||||||
apple_joypad_packet(connection->slot, connection->data, reportLength + 1);
|
pad_connection_packet(connection->slot, connection->data, reportLength + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void add_device(void* context, IOReturn result,
|
static void add_device(void* context, IOReturn result,
|
||||||
@ -312,7 +312,7 @@ void apple_joypad_disconnect(uint32_t slot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void apple_joypad_packet(uint32_t slot,
|
void pad_connection_packet(uint32_t slot,
|
||||||
uint8_t* data, uint32_t length)
|
uint8_t* data, uint32_t length)
|
||||||
{
|
{
|
||||||
if (slot < MAX_PLAYERS && slots[slot].used)
|
if (slot < MAX_PLAYERS && slots[slot].used)
|
||||||
|
@ -116,7 +116,7 @@ void apple_joypad_disconnect(uint32_t pad)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void apple_joypad_packet(uint32_t pad,
|
void pad_connection_packet(uint32_t pad,
|
||||||
uint8_t* data, uint32_t length)
|
uint8_t* data, uint32_t length)
|
||||||
{
|
{
|
||||||
if (pad < MAX_PLAYERS && slots[pad].used)
|
if (pad < MAX_PLAYERS && slots[pad].used)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user