mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Small cleanup to adapt to upstream code changes
retro_bits_t turned into input_bits_t and there were parts of my code that needed to update. == TESTING No idea if upstream changes broke anything, but it compiles cleanly now.
This commit is contained in:
parent
fb5b31faf3
commit
6ab91a422e
@ -236,7 +236,7 @@ static void ds3_pad_deinit(void *data)
|
||||
ds3_instance_t *pad = (ds3_instance_t *)data;
|
||||
}
|
||||
|
||||
static void ds3_get_buttons(void *data, retro_bits_t *state)
|
||||
static void ds3_get_buttons(void *data, input_bits_t *state)
|
||||
{
|
||||
ds3_instance_t *pad = (ds3_instance_t *)data;
|
||||
|
||||
|
@ -103,7 +103,7 @@ static void ds4_pad_deinit(void *data)
|
||||
{
|
||||
}
|
||||
|
||||
static void ds4_get_buttons(void *data, retro_bits_t *state)
|
||||
static void ds4_get_buttons(void *data, input_bits_t *state)
|
||||
{
|
||||
ds4_instance_t *instance = (ds4_instance_t *)data;
|
||||
if(!instance)
|
||||
|
@ -140,10 +140,10 @@ static void null_pad_deinit(void *data)
|
||||
}
|
||||
|
||||
/**
|
||||
* Translate the button data from the pad into the retro_bits_t format
|
||||
* Translate the button data from the pad into the input_bits_t format
|
||||
* that RetroArch can use.
|
||||
*/
|
||||
static void null_get_buttons(void *data, retro_bits_t *state)
|
||||
static void null_get_buttons(void *data, input_bits_t *state)
|
||||
{
|
||||
null_instance_t *instance = (null_instance_t *)data;
|
||||
if(!instance)
|
||||
|
@ -229,7 +229,7 @@ static void wiiu_gca_pad_deinit(void *data)
|
||||
}
|
||||
}
|
||||
|
||||
static void wiiu_gca_get_buttons(void *data, retro_bits_t *state)
|
||||
static void wiiu_gca_get_buttons(void *data, input_bits_t *state)
|
||||
{
|
||||
gca_pad_t *pad = (gca_pad_t *)data;
|
||||
if(pad)
|
||||
|
@ -39,7 +39,7 @@ struct hid_driver
|
||||
bool (*query_pad)(void *handle, unsigned pad);
|
||||
void (*free)(const void *handle);
|
||||
bool (*button)(void *handle, unsigned pad, uint16_t button);
|
||||
void (*get_buttons)(void *handle, unsigned pad, retro_bits_t *state);
|
||||
void (*get_buttons)(void *handle, unsigned pad, input_bits_t *state);
|
||||
int16_t (*axis)(void *handle, unsigned pad, uint32_t axis);
|
||||
void (*poll)(void *handle);
|
||||
bool (*set_rumble)(void *handle, unsigned pad, enum retro_rumble_effect effect, uint16_t);
|
||||
|
Loading…
x
Reference in New Issue
Block a user