(net retropad core) Cleanup
This commit is contained in:
parent
091aa7d8a6
commit
313c091f31
|
@ -336,18 +336,18 @@ void NETRETROPAD_CORE_PREFIX(retro_reset)(void)
|
||||||
|
|
||||||
void NETRETROPAD_CORE_PREFIX(retro_run)(void)
|
void NETRETROPAD_CORE_PREFIX(retro_run)(void)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
unsigned rle, runs;
|
unsigned rle, runs;
|
||||||
uint16_t *pixel = NULL;
|
uint16_t *pixel = NULL;
|
||||||
unsigned input_state = 0;
|
unsigned input_state = 0;
|
||||||
int offset;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
/* Update input states and send them if needed */
|
/* Update input states and send them if needed */
|
||||||
retropad_update_input();
|
retropad_update_input();
|
||||||
|
|
||||||
/* Combine RetroPad input states into one value */
|
/* Combine RetroPad input states into one value */
|
||||||
for (i = joypad.id_min; i <= joypad.id_max; i++) {
|
for (i = joypad.id_min; i <= joypad.id_max; i++)
|
||||||
offset = DESC_OFFSET(&joypad, 0, 0, i);
|
{
|
||||||
|
int offset = DESC_OFFSET(&joypad, 0, 0, i);
|
||||||
if (joypad.value[offset])
|
if (joypad.value[offset])
|
||||||
input_state |= 1 << i;
|
input_state |= 1 << i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue