Disabling controlblock's second controller

Home Forums RetroPie Project GPIO Adapter, ControlBlock etc. Disabling controlblock's second controller

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by Profile photo of Dinofly Dinofly 1 year, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #101872
    Profile photo of ptitneo
    ptitneo
    Participant

    Hello there,

    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!

    #103046
    Profile photo of petrockblog
    petrockblog
    Keymaster

    Good idea to make the number of gamepads configurable. Until then, setting NUMGAMEPADS to 1 should do the trick.

    #103047
    Profile photo of petrockblog
    petrockblog
    Keymaster

    Also, feel free to submit a pull request if you make the ControlBlock driver configurable 🙂

    #105625
    Profile photo of ptitneo
    ptitneo
    Participant

    I confirm it does the trick, haven’t had time to make it configurable though.

    #107957
    Profile photo of ptitneo
    ptitneo
    Participant

    Hello, just a quick update: I finally took the time to make it configurable and just submitted a pull request. Cheers!

    #110491
    Profile photo of Dinofly
    Dinofly
    Participant

    Hi,

    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 ?

Viewing 6 posts - 1 through 6 (of 6 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar