Skip to content

Commit

Permalink
Properly recognize triggers and axes for evdev pads.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur authored and Megamouse committed Nov 17, 2021
1 parent 22910c0 commit 9f35c3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpcs3/Input/evdev_joystick_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,22 +1046,22 @@ bool evdev_joystick_handler::check_buttons(const std::vector<EvdevButton>& b, co

bool evdev_joystick_handler::get_is_left_trigger(u64 keyCode)
{
return keyCode == check_button(m_dev->trigger_left, static_cast<u32>(keyCode));
return check_button(m_dev->trigger_left, static_cast<u32>(keyCode));
}

bool evdev_joystick_handler::get_is_right_trigger(u64 keyCode)
{
return keyCode == check_button(m_dev->trigger_right, static_cast<u32>(keyCode));
return check_button(m_dev->trigger_right, static_cast<u32>(keyCode));
}

bool evdev_joystick_handler::get_is_left_stick(u64 keyCode)
{
return keyCode == check_buttons(m_dev->axis_left, static_cast<u32>(keyCode));
return check_buttons(m_dev->axis_left, static_cast<u32>(keyCode));
}

bool evdev_joystick_handler::get_is_right_stick(u64 keyCode)
{
return keyCode == check_buttons(m_dev->axis_right, static_cast<u32>(keyCode));
return check_buttons(m_dev->axis_right, static_cast<u32>(keyCode));
}

#endif

0 comments on commit 9f35c3f

Please sign in to comment.