mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +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 pad_connection;
|
||||||
|
|
||||||
struct apple_pad_interface
|
struct pad_connection_interface
|
||||||
{
|
{
|
||||||
void* (*connect)(void *data, uint32_t slot);
|
void* (*connect)(void *data, uint32_t slot);
|
||||||
|
|
||||||
void (*disconnect)(void* device);
|
void (*disconnect)(void* device);
|
||||||
|
|
||||||
void (*packet_handler)(void* device, uint8_t *packet, uint16_t size);
|
void (*packet_handler)(void* device, uint8_t *packet, uint16_t size);
|
||||||
|
|
||||||
void (*set_rumble)(void* device, enum retro_rumble_effect effect,
|
void (*set_rumble)(void* device, enum retro_rumble_effect effect,
|
||||||
uint16_t strength);
|
uint16_t strength);
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
bool used;
|
bool used;
|
||||||
struct apple_pad_interface* iface;
|
struct pad_connection_interface *iface;
|
||||||
void* data;
|
void* data;
|
||||||
|
|
||||||
bool is_gcapi;
|
bool is_gcapi;
|
||||||
@ -263,7 +263,7 @@ int32_t apple_joypad_connect(const char* name, void *data)
|
|||||||
static const struct
|
static const struct
|
||||||
{
|
{
|
||||||
const char* name;
|
const char* name;
|
||||||
struct apple_pad_interface* iface;
|
struct pad_connection_interface *iface;
|
||||||
} pad_map[] =
|
} pad_map[] =
|
||||||
{
|
{
|
||||||
{ "Nintendo RVL-CNT-01", &apple_pad_wii },
|
{ "Nintendo RVL-CNT-01", &apple_pad_wii },
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
bool used;
|
bool used;
|
||||||
struct apple_pad_interface* iface;
|
struct pad_connection_interface *iface;
|
||||||
void* data;
|
void* data;
|
||||||
|
|
||||||
bool is_gcapi;
|
bool is_gcapi;
|
||||||
@ -64,7 +64,7 @@ int32_t apple_joypad_connect(const char* name, void *data)
|
|||||||
static const struct
|
static const struct
|
||||||
{
|
{
|
||||||
const char* name;
|
const char* name;
|
||||||
struct apple_pad_interface* iface;
|
struct pad_connection_interface *iface;
|
||||||
} pad_map[] =
|
} pad_map[] =
|
||||||
{
|
{
|
||||||
{ "Nintendo RVL-CNT-01", &apple_pad_wii },
|
{ "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_connect,
|
||||||
&hidpad_ps3_disconnect,
|
&hidpad_ps3_disconnect,
|
||||||
|
@ -178,7 +178,7 @@ static void hidpad_ps4_set_rumble(void *data,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
struct apple_pad_interface apple_pad_ps4 =
|
struct pad_connection_interface apple_pad_ps4 =
|
||||||
{
|
{
|
||||||
&hidpad_ps4_connect,
|
&hidpad_ps4_connect,
|
||||||
&hidpad_ps4_disconnect,
|
&hidpad_ps4_disconnect,
|
||||||
|
@ -116,7 +116,7 @@ static void hidpad_wii_set_rumble(void *data,
|
|||||||
(void)strength;
|
(void)strength;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct apple_pad_interface apple_pad_wii =
|
struct pad_connection_interface apple_pad_wii =
|
||||||
{
|
{
|
||||||
&hidpad_wii_connect,
|
&hidpad_wii_connect,
|
||||||
&hidpad_wii_disconnect,
|
&hidpad_wii_disconnect,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user