mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(joypad_connection.h) Cleanups
This commit is contained in:
parent
03b1f36af1
commit
53aa251008
@ -23,6 +23,13 @@
|
||||
|
||||
typedef void (*send_control_t)(void *data, uint8_t *buf, size_t size);
|
||||
|
||||
struct joypad_connection
|
||||
{
|
||||
bool connected;
|
||||
struct pad_connection_interface *iface;
|
||||
void* data;
|
||||
};
|
||||
|
||||
typedef struct pad_connection_interface
|
||||
{
|
||||
void* (*init)(void *data, uint32_t slot, send_control_t ptr);
|
||||
@ -34,17 +41,12 @@ typedef struct pad_connection_interface
|
||||
int16_t (*get_axis)(void *data, unsigned axis);
|
||||
} pad_connection_interface_t;
|
||||
|
||||
typedef struct joypad_connection joypad_connection_t;
|
||||
|
||||
extern pad_connection_interface_t pad_connection_wii;
|
||||
extern pad_connection_interface_t pad_connection_ps3;
|
||||
extern pad_connection_interface_t pad_connection_ps4;
|
||||
|
||||
typedef struct joypad_connection
|
||||
{
|
||||
bool connected;
|
||||
struct pad_connection_interface *iface;
|
||||
void* data;
|
||||
} joypad_connection_t;
|
||||
|
||||
int32_t pad_connection_pad_init(joypad_connection_t *joyconn,
|
||||
const char* name, uint16_t vid, uint16_t pid,
|
||||
void *data, send_control_t ptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user