mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2025-02-26 03:35:30 +00:00
Merge pull request #2 from ficoos/analog_fix
Analog direction reverses when gamepad sends maximum value.
This commit is contained in:
commit
38f006e00e
@ -84,7 +84,7 @@ void InputDevice_DualAnalog::UpdateInput(const void *data)
|
||||
{
|
||||
int32 tmp;
|
||||
|
||||
tmp = 32768 + MDFN_de32lsb((const uint8 *)data + stick * 16 + axis * 8 + 4) - ((int32)MDFN_de32lsb((const uint8 *)data + stick * 16 + axis * 8 + 8) * 32768 / 32767);
|
||||
tmp = 32768 + MDFN_de32lsb((const uint8 *)data + stick * 16 + axis * 8 + 4) - ((int32)MDFN_de32lsb((const uint8 *)data + stick * 16 + axis * 8 + 8) * 32768 / 32768);
|
||||
tmp >>= 8;
|
||||
|
||||
axes[stick][axis] = tmp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user