(Net RetroPad) Cleanups

This commit is contained in:
twinaphex 2016-07-24 23:48:39 +02:00
parent d8d54a15d4
commit 5c453c4454

View File

@ -161,6 +161,10 @@ static unsigned retropad_update_input(void)
value += pow(2, 12);
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_R2))
value += pow(2, 13);
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_L3))
value += pow(2, 14);
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_R3))
value += pow(2, 15);
return value;
}
@ -240,7 +244,6 @@ void NETRETROPAD_CORE_PREFIX(retro_reset)(void)
void NETRETROPAD_CORE_PREFIX(retro_run)(void)
{
unsigned i;
char message[64];
unsigned input_state = retropad_update_input();