recalbox / mk_arcade_joystick_rpi

Raspberry PI kernel module for arcade joystick on GPIO and MCP23017
GNU General Public License v2.0
200 stars 120 forks source link

hotkey input #66

Open BrainSlugs83 opened 5 years ago

BrainSlugs83 commented 5 years ago

Where pinx is the number of the gpio you want. There are 12 posible gpio with button order: Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl. Use -1 for unused pins. For example gpio=21,13,26,19,-1,-1,22,24,-1,-1,-1,-1 uses gpios 21,13,26,19 for axis and gpios 22 and 24 for A and B buttons, the rest of buttons are unused.

Just looking through the readme.md on the main archive it sounds like even with a custom map (and only a single player) you can still only map 12 total buttons -- so there is no room for configuring a separate hotkey (e.g. a 13th button).

I understand that the default is to configure select to be the hotkey, but that can be VERY annoying in some games, so many folks prefer to configure a separate one (on other controllers I usually setup the Xbox Jewel button, or the Star button on an 8Bitdo, etc.).

If this is a low priority, if someone could give me some guidance on this I could take a crack at it myself.

Thanks, --Mikey