mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
Change apple_pad_interface to pad_connection_interface
This commit is contained in:
parent
d2cd74a68e
commit
2e4c2fedb2
@ -53,11 +53,14 @@ typedef struct
|
||||
|
||||
struct pad_connection;
|
||||
|
||||
struct apple_pad_interface
|
||||
struct pad_connection_interface
|
||||
{
|
||||
void* (*connect)(void *data, uint32_t slot);
|
||||
|
||||
void (*disconnect)(void* device);
|
||||
|
||||
void (*packet_handler)(void* device, uint8_t *packet, uint16_t size);
|
||||
|
||||
void (*set_rumble)(void* device, enum retro_rumble_effect effect,
|
||||
uint16_t strength);
|
||||
};
|
||||
|
@ -23,7 +23,7 @@
|
||||
typedef struct
|
||||
{
|
||||
bool used;
|
||||
struct apple_pad_interface* iface;
|
||||
struct pad_connection_interface *iface;
|
||||
void* data;
|
||||
|
||||
bool is_gcapi;
|
||||
@ -263,7 +263,7 @@ int32_t apple_joypad_connect(const char* name, void *data)
|
||||
static const struct
|
||||
{
|
||||
const char* name;
|
||||
struct apple_pad_interface* iface;
|
||||
struct pad_connection_interface *iface;
|
||||
} pad_map[] =
|
||||
{
|
||||
{ "Nintendo RVL-CNT-01", &apple_pad_wii },
|
||||
|
@ -26,7 +26,7 @@
|
||||
typedef struct
|
||||
{
|
||||
bool used;
|
||||
struct apple_pad_interface* iface;
|
||||
struct pad_connection_interface *iface;
|
||||
void* data;
|
||||
|
||||
bool is_gcapi;
|
||||
@ -64,7 +64,7 @@ int32_t apple_joypad_connect(const char* name, void *data)
|
||||
static const struct
|
||||
{
|
||||
const char* name;
|
||||
struct apple_pad_interface* iface;
|
||||
struct pad_connection_interface *iface;
|
||||
} pad_map[] =
|
||||
{
|
||||
{ "Nintendo RVL-CNT-01", &apple_pad_wii },
|
||||
|
@ -169,7 +169,7 @@ static void hidpad_ps3_set_rumble(void *data,
|
||||
}
|
||||
}
|
||||
|
||||
struct apple_pad_interface apple_pad_ps3 =
|
||||
struct pad_connection_interface apple_pad_ps3 =
|
||||
{
|
||||
&hidpad_ps3_connect,
|
||||
&hidpad_ps3_disconnect,
|
||||
|
@ -178,7 +178,7 @@ static void hidpad_ps4_set_rumble(void *data,
|
||||
#endif
|
||||
}
|
||||
|
||||
struct apple_pad_interface apple_pad_ps4 =
|
||||
struct pad_connection_interface apple_pad_ps4 =
|
||||
{
|
||||
&hidpad_ps4_connect,
|
||||
&hidpad_ps4_disconnect,
|
||||
|
@ -116,7 +116,7 @@ static void hidpad_wii_set_rumble(void *data,
|
||||
(void)strength;
|
||||
}
|
||||
|
||||
struct apple_pad_interface apple_pad_wii =
|
||||
struct pad_connection_interface apple_pad_wii =
|
||||
{
|
||||
&hidpad_wii_connect,
|
||||
&hidpad_wii_disconnect,
|
||||
|
Loading…
Reference in New Issue
Block a user