mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(Apple) Build fixes
This commit is contained in:
parent
640fa534cd
commit
1fe04654ce
@ -116,10 +116,9 @@ static void hidpad_wii_set_rumble(void *data,
|
||||
(void)strength;
|
||||
}
|
||||
|
||||
struct pad_connection_interface apple_pad_wii =
|
||||
{
|
||||
&hidpad_wii_connect,
|
||||
&hidpad_wii_disconnect,
|
||||
&hidpad_wii_packet_handler,
|
||||
&hidpad_wii_set_rumble
|
||||
pad_connection_interface_t apple_pad_wii = {
|
||||
hidpad_wii_connect,
|
||||
hidpad_wii_disconnect,
|
||||
hidpad_wii_packet_handler,
|
||||
hidpad_wii_set_rumble
|
||||
};
|
||||
|
@ -56,7 +56,7 @@ int32_t pad_connection_connect(const char* name, void *data)
|
||||
static const struct
|
||||
{
|
||||
const char* name;
|
||||
struct pad_connection_interface *iface;
|
||||
pad_connection_interface_t *iface;
|
||||
} pad_map[] =
|
||||
{
|
||||
{ "Nintendo RVL-CNT-01", &apple_pad_wii },
|
||||
|
@ -17,9 +17,10 @@
|
||||
#ifndef _JOYPAD_CONNECTION_H
|
||||
#define _JOYPAD_CONNECTION_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct pad_connection_interface
|
||||
typedef struct pad_connection_interface
|
||||
{
|
||||
void* (*connect)(void *data, uint32_t slot);
|
||||
|
||||
@ -29,7 +30,10 @@ struct pad_connection_interface
|
||||
|
||||
void (*set_rumble)(void* device, enum retro_rumble_effect effect,
|
||||
uint16_t strength);
|
||||
};
|
||||
} pad_connection_interface_t;
|
||||
|
||||
extern pad_connection_interface_t apple_pad_wii;
|
||||
extern pad_connection_interface_t apple_pad_ps3;
|
||||
|
||||
int32_t pad_connection_connect(const char* name, void *data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user