mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Input: fix MMJOY axis identification
This commit is contained in:
parent
e362c2c078
commit
13b3c78c7f
14 changed files with 118 additions and 104 deletions
|
|
@ -422,17 +422,17 @@ std::shared_ptr<PadDevice> xinput_pad_handler::get_device(const std::string& dev
|
|||
return x_device;
|
||||
}
|
||||
|
||||
bool xinput_pad_handler::get_is_left_trigger(u64 keyCode)
|
||||
bool xinput_pad_handler::get_is_left_trigger(const std::shared_ptr<PadDevice>& /*device*/, u64 keyCode)
|
||||
{
|
||||
return keyCode == XInputKeyCodes::LT;
|
||||
}
|
||||
|
||||
bool xinput_pad_handler::get_is_right_trigger(u64 keyCode)
|
||||
bool xinput_pad_handler::get_is_right_trigger(const std::shared_ptr<PadDevice>& /*device*/, u64 keyCode)
|
||||
{
|
||||
return keyCode == XInputKeyCodes::RT;
|
||||
}
|
||||
|
||||
bool xinput_pad_handler::get_is_left_stick(u64 keyCode)
|
||||
bool xinput_pad_handler::get_is_left_stick(const std::shared_ptr<PadDevice>& /*device*/, u64 keyCode)
|
||||
{
|
||||
switch (keyCode)
|
||||
{
|
||||
|
|
@ -446,7 +446,7 @@ bool xinput_pad_handler::get_is_left_stick(u64 keyCode)
|
|||
}
|
||||
}
|
||||
|
||||
bool xinput_pad_handler::get_is_right_stick(u64 keyCode)
|
||||
bool xinput_pad_handler::get_is_right_stick(const std::shared_ptr<PadDevice>& /*device*/, u64 keyCode)
|
||||
{
|
||||
switch (keyCode)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue