OpenEmu / Mednafen-Core

OpenEmu Core plugin with Mednafen
29 stars 22 forks source link

Analog support int Mednafen 1.21.x for PSX and Saturn #18

Closed duckey77 closed 6 years ago

duckey77 commented 6 years ago

Updates the PSX and Saturn Analog controls for the new mednafen API

duckey77 commented 6 years ago

PSX Controller input buffer byte layout

Old
Byte Use
1-2 Buttons
3-4 R Analog Right
5-6 R Analog Left
7-8 R Analog Down
9-10 R Analog UP
11-12 L Analog Right 13-15 L Analog Left 16-17 L Analog Down 18-19 L Analog Up

New Byte Use 1-2. Buttons 3-4 R Anolog Right-Left 5-6 R Analog Up-Down 7-8 L Analog Right-Left 9-10 L Analog Up-Down

With the new input api, the key maps for up-down, and left-aright are the same now Also, there is no need to clear the opposing direction as they are now set in the same 16 bits