mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(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)
|
||||
{
|
||||
int i;
|
||||
unsigned rle, runs;
|
||||
uint16_t *pixel = NULL;
|
||||
unsigned input_state = 0;
|
||||
int offset;
|
||||
int i;
|
||||
|
||||
/* Update input states and send them if needed */
|
||||
retropad_update_input();
|
||||
|
||||
/* Combine RetroPad input states into one value */
|
||||
for (i = joypad.id_min; i <= joypad.id_max; i++) {
|
||||
offset = DESC_OFFSET(&joypad, 0, 0, i);
|
||||
for (i = joypad.id_min; i <= joypad.id_max; i++)
|
||||
{
|
||||
int offset = DESC_OFFSET(&joypad, 0, 0, i);
|
||||
if (joypad.value[offset])
|
||||
input_state |= 1 << i;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user