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:
gblues 2018-04-14 14:34:13 -07:00
parent fb5b31faf3
commit 6ab91a422e
5 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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);