mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 18:22:42 +00:00
Rename apple_joypad_disconnect to pad_connection_disconnect
This commit is contained in:
parent
4d14540997
commit
e9239316f8
@ -126,7 +126,7 @@ static void apple_gamecontroller_disconnect(GCController* controller)
|
||||
if (controller.playerIndex == GCControllerPlayerIndexUnset)
|
||||
return;
|
||||
|
||||
apple_joypad_disconnect((uint32_t)controller.playerIndex);
|
||||
pad_connection_disconnect((uint32_t)controller.playerIndex);
|
||||
}
|
||||
|
||||
void apple_gamecontroller_init(void)
|
||||
|
@ -346,7 +346,7 @@ void btpad_packet_handler(uint8_t packet_type,
|
||||
{
|
||||
connection->handle = 0;
|
||||
|
||||
apple_joypad_disconnect(connection->slot);
|
||||
pad_connection_disconnect(connection->slot);
|
||||
btpad_close_connection(connection);
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ int32_t joypad_connection_connect(const char* name, void *data);
|
||||
|
||||
int32_t apple_joypad_connect_gcapi(void);
|
||||
|
||||
void apple_joypad_disconnect(uint32_t slot);
|
||||
void pad_connection_disconnect(uint32_t slot);
|
||||
|
||||
void pad_connection_packet(uint32_t slot, uint8_t* data, uint32_t length);
|
||||
|
||||
|
@ -145,7 +145,7 @@ static void remove_device(void* context, IOReturn result, void* sender)
|
||||
apple->buttons[connection->slot] = 0;
|
||||
memset(apple->axes[connection->slot], 0, sizeof(apple->axes));
|
||||
|
||||
apple_joypad_disconnect(connection->slot);
|
||||
pad_connection_disconnect(connection->slot);
|
||||
free(connection);
|
||||
}
|
||||
|
||||
@ -299,7 +299,7 @@ int32_t apple_joypad_connect_gcapi(void)
|
||||
return pad;
|
||||
}
|
||||
|
||||
void apple_joypad_disconnect(uint32_t slot)
|
||||
void pad_connection_disconnect(uint32_t slot)
|
||||
{
|
||||
if (slot < MAX_PLAYERS && slots[slot].used)
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ int32_t apple_joypad_connect_gcapi(void)
|
||||
return pad;
|
||||
}
|
||||
|
||||
void apple_joypad_disconnect(uint32_t pad)
|
||||
void pad_connection_disconnect(uint32_t pad)
|
||||
{
|
||||
if (pad < MAX_PLAYERS && slots[pad].used)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user