Rename apple_joypad_disconnect to pad_connection_disconnect

This commit is contained in:
twinaphex 2014-10-04 18:48:02 +02:00
parent 4d14540997
commit e9239316f8
5 changed files with 6 additions and 6 deletions

View File

@ -126,7 +126,7 @@ static void apple_gamecontroller_disconnect(GCController* controller)
if (controller.playerIndex == GCControllerPlayerIndexUnset) if (controller.playerIndex == GCControllerPlayerIndexUnset)
return; return;
apple_joypad_disconnect((uint32_t)controller.playerIndex); pad_connection_disconnect((uint32_t)controller.playerIndex);
} }
void apple_gamecontroller_init(void) void apple_gamecontroller_init(void)

View File

@ -346,7 +346,7 @@ void btpad_packet_handler(uint8_t packet_type,
{ {
connection->handle = 0; connection->handle = 0;
apple_joypad_disconnect(connection->slot); pad_connection_disconnect(connection->slot);
btpad_close_connection(connection); btpad_close_connection(connection);
} }
} }

View File

@ -70,7 +70,7 @@ int32_t joypad_connection_connect(const char* name, void *data);
int32_t apple_joypad_connect_gcapi(void); 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); void pad_connection_packet(uint32_t slot, uint8_t* data, uint32_t length);

View File

@ -145,7 +145,7 @@ static void remove_device(void* context, IOReturn result, void* sender)
apple->buttons[connection->slot] = 0; apple->buttons[connection->slot] = 0;
memset(apple->axes[connection->slot], 0, sizeof(apple->axes)); memset(apple->axes[connection->slot], 0, sizeof(apple->axes));
apple_joypad_disconnect(connection->slot); pad_connection_disconnect(connection->slot);
free(connection); free(connection);
} }
@ -299,7 +299,7 @@ int32_t apple_joypad_connect_gcapi(void)
return pad; return pad;
} }
void apple_joypad_disconnect(uint32_t slot) void pad_connection_disconnect(uint32_t slot)
{ {
if (slot < MAX_PLAYERS && slots[slot].used) if (slot < MAX_PLAYERS && slots[slot].used)
{ {

View File

@ -103,7 +103,7 @@ int32_t apple_joypad_connect_gcapi(void)
return pad; return pad;
} }
void apple_joypad_disconnect(uint32_t pad) void pad_connection_disconnect(uint32_t pad)
{ {
if (pad < MAX_PLAYERS && slots[pad].used) if (pad < MAX_PLAYERS && slots[pad].used)
{ {