ptitneoParticipant07/11/2015 at 18:04Post count: 10
TL;DR: how to have the controlblock service only show one arcade controller? Editing this?
So I’ve converted an iCade cabinet into a retropie machine, using a Controlblock to wire the buttons to the Pi. As you’d guess, this is a one-player machine, and the arcade controls aren’t ideal in all situation. I plan on adding physical SNES ports eventually but in the mean time I plugged in a bluetooth key to play with other controllers (ps3 and soon a nice snes30 from 8bitdo).
So here’s my problem: the controlblock registers two controllers but only one is wired, thus creating a “ghost device”. BT controllers come after the index of this ghost gamepad. Not a big deal in ES as any controller can drive the interface but when I open the GUI in RetroArch as I want to switch controls (controlblock’s player 1), when I try to change the index from 0 (controlblock player 1) to 2 (bluetooth), I have to go through 1 first and then I lose all control in the GUI :)
So basically I’d like to be able to only circle through controllers that are actually working so that I don’t get stuck in retroarch.
I had a quick look at the driver and was wondering if simply changing the value of NUMGAMEPADS here would do the trick? Of course ideally if that was editable through the config file it would be best.
Thanks!petrockblogKeymaster07/30/2015 at 21:23Post count: 1827
Good idea to make the number of gamepads configurable. Until then, setting
NUMGAMEPADSto 1 should do the trick.petrockblogKeymaster07/30/2015 at 21:24Post count: 1827
Also, feel free to submit a pull request if you make the ControlBlock driver configurable :-)ptitneoParticipant09/08/2015 at 14:52Post count: 10
I confirm it does the trick, haven’t had time to make it configurable though.ptitneoParticipant10/17/2015 at 15:13Post count: 10DinoflyParticipant11/22/2015 at 23:36Post count: 29
Can the driver detect when a SNES controller is plugged in the GPIO adapter ?
I want to build a 2 players bartop arcade with 2 SNES controllers connectors on the front side of the machine, to be able to play with 4 simultaneous players. Will these 2 empty connectors always appear as existing gamepads even when nothing is plugged in ?
- The forum ‘GPIO Adapter, ControlBlock etc.’ is closed to new topics and replies.