(Input) Cannot swap dpad and left analog inputs by remapping
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14.1k
- Forks
- 2.2k
- Avg merge
- 7h 35m
- Merged PRs (30d)
- 51
Description
Description
RetroArch does not seem to support swapping dpad and analog inputs via remapping. For example, when global key bindings have the following settings:
WSAD -> Dpads up/down/left/right
arrow keys -> Left analog up/down/left/right
and in some specific game, I would like to have WSAD as analog UDLR, and arrow keys as dpad UDLR, keymapping does not work as expected, namely, WSAD can be configured as analog UDLR, but arrow keys won't work as dpad UDLR, and no inputs are detected. Tested on PCSX2 and PPSSPP cores and both have the issue.
Expected behavior
Through key remapping, dpad inputs can be re-mapped as analog, and vice versa.
Actual behavior
Through key remapping, dpad inputs can be re-mapped as analog, but analog inputs cannot be re-mapped as dpad.
Steps to reproduce the bug
- Define WSAD as dpad and arrow keys as left analog in global key config
- Boot up PCSX2 core, and load PS2 Controller Tester elf from https://www.ps2-home.com/forum/viewtopic.php?t=5483
- Now, both dpad and analog inputs should work properly
- Swap dpad and analog by remapping keys accordingly
- WSAD register as left analog, but arrow keys can't input anything
Version/Commit
You can find this information under Information/System Information
- RetroArch: 1.9.14
Environment information
- OS: Windows 10 21H2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the PCSX2 and PPSSPP cores using the PS2 Controller Tester ELF, first confirming that the original D-pad and analog mappings work. Swap the mappings as described and verify that both directions accept input; done means arrow-key D-pad input works after remapping, not only WSAD analog input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100