mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
input: fix emulated pad stick y axis
This commit is contained in:
parent
e584653b72
commit
5cc2a7c09e
@ -125,9 +125,9 @@ u32 get_axis_keycode(u32 offset, u16 value)
|
||||
switch (offset)
|
||||
{
|
||||
case CELL_PAD_BTN_OFFSET_ANALOG_LEFT_X: return static_cast<u32>(value > 127 ? axis_direction::positive : axis_direction::negative);
|
||||
case CELL_PAD_BTN_OFFSET_ANALOG_LEFT_Y: return static_cast<u32>(value > 127 ? axis_direction::positive : axis_direction::negative);
|
||||
case CELL_PAD_BTN_OFFSET_ANALOG_LEFT_Y: return static_cast<u32>(value < 128 ? axis_direction::positive : axis_direction::negative);
|
||||
case CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_X: return static_cast<u32>(value > 127 ? axis_direction::positive : axis_direction::negative);
|
||||
case CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_Y: return static_cast<u32>(value > 127 ? axis_direction::positive : axis_direction::negative);
|
||||
case CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_Y: return static_cast<u32>(value < 128 ? axis_direction::positive : axis_direction::negative);
|
||||
default: return static_cast<u32>(axis_direction::both);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user