remap-redux part2: let's use this function instead, add logging

This commit is contained in:
radius 2018-04-03 22:39:34 -05:00
parent d8d22a9c40
commit 1fa28f0e31
2 changed files with 5 additions and 6 deletions

View File

@ -1140,16 +1140,15 @@ void input_get_state_for_port(void *data, unsigned port, retro_bits_t* p_new_sta
joypad_info.auto_binds = input_autoconf_binds[joypad_info.joy_idx];
joypad_info.axis_threshold = input_driver_axis_threshold;
input_driver_block_libretro_input = false;
input_driver_block_hotkey = false;
for (i = 0; i < RARCH_FIRST_CUSTOM_BIND; i++)
{
bool bit_pressed = false;
if (binds[i].valid && current_input->input_state(current_input_data,
joypad_info, &binds, port, RETRO_DEVICE_JOYPAD, 0, i))
if (input_driver_input_state(joypad_info, &binds, port, RETRO_DEVICE_JOYPAD, 0, i) == 1)
{
RARCH_LOG("button pressed port: %d id: %d\n", port, i);
bit_pressed = true;
}
if (bit_pressed)
BIT256_SET_PTR(p_new_state, i);

View File

@ -144,7 +144,7 @@ void input_mapper_poll(input_mapper_t *handle)
is assigned to any other button than the default one, then it sets the bit on the
mapper input bitmap, later on the original input is cleared in input_state */
BIT256_CLEAR_ALL(handle->buttons[i]);
input_get_state_for_port(settings, i, &current_input);
input_get_state_for_port(settings, 0, &current_input);
for (j = 0; j < RARCH_FIRST_CUSTOM_BIND; j++)
{