Retropie Menu Controller Problem (joy2key)
-
Hi there, I've spent a couple hours searching through the forums and I can't find the solution to this issue. I'm using a Shanwan ps3 clone via bluetooth on retropie 4.2. I've got it all configured and working great within emulationstation and retroarch for all emulators, but I can't figure out how to get it working within the retropie menus (not sure their name exactly, here's an example picture, not from my system)
For some reason only the analog sticks work to move around the menus, but none of the other buttons do anything.
Is there a .cfg file associated with those menus I can edit, or some other trick? Any help would be greatly appreciated.
Thanks in advance,
Jim -
Seems these controls are controlled by joy2key, and automatically map button "0" to "ok" and button "1" to "back." I suppose it's possible that my controller doesn't have a button 1 or 0, but I doubt it, and I'm not home to check atm, but it seems I've been pointed in the right direction by this comment on another post.
@BuZz said in Is there a way to map <Enter> to a non-zero button? (joy2key):
@meleu you can adjust the codes that get sent - means customising the scripts though.
eg. line 116 of
runcommand.sh
from
"$ROOTDIR/supplementary/runcommand/joy2key.py" "$JOY2KEY_DEV" kcub1 kcuf1 kcuu1 kcud1 0x0a 0x09 &
to
"$ROOTDIR/supplementary/runcommand/joy2key.py" "$JOY2KEY_DEV" kcub1 kcuf1 kcuu1 kcud1 0x0a 0x09 0x0a 0x0a 0x0a &
would assign
0x0a
(enter) to buttons 2, 3 and 4 in addition to the existing mapping. -
Turns out button 0 and 1 on my controller are select and left thumbstick, and they work, just not terribly convenient. I'm hoping someone can shine some light on how to include buttons 13 and 14 as enter and tab respectively.
Would I be correct in assuming 0x0a is "enter" and 0x09 is "tab" and the order in which they are written in this statement is the button # they correspond to? Is there a way to get to buttons 13 and 14 without remapping (and probably pooching) every button along the way?
"$ROOTDIR/supplementary/runcommand/joy2key.py" "$JOY2KEY_DEV" kcub1 kcuf1 kcuu1 kcud1 0x0a 0x09 0x0a 0x0a 0x0a &
-
Still looking for some help :D
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.