fix map and remove stray printf

This commit is contained in:
radius 2016-06-29 12:22:45 -05:00
parent 24ec6928dc
commit a1cf6f29f4
2 changed files with 2 additions and 3 deletions

View File

@ -111,7 +111,7 @@ static unsigned retropad_update_input(void)
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_B))
value += 1;
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_A))
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_Y))
value += 2;
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_SELECT))
value += pow(2, 2);
@ -125,7 +125,7 @@ static unsigned retropad_update_input(void)
value += pow(2, 6);
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_RIGHT))
value += pow(2, 7);
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_Y))
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_A))
value += pow(2, 8);
if (NETRETROPAD_CORE_PREFIX(input_state_cb)(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_X))
value += pow(2, 9);

View File

@ -155,7 +155,6 @@ static void input_remote_parse_packet(char *buffer, unsigned size, unsigned user
{
input_remote_state_t *ol_state = input_remote_get_state_ptr();
/* todo implement parsing of input_state from the packet */
RARCH_LOG ("Test : %s %d", buffer, atoi(buffer));
ol_state->buttons[user] = atoi(buffer);
}
#endif