Homepage Forums RetroPie Project GPIO Adapter, ControlBlock etc. SNES gamepad does not work using ControlBlock Reply To: SNES gamepad does not work using ControlBlock

#92250
petrockblog
Keymaster

One way to debug the GPIO ports is the following:

  1. Set the gamepad type in the configuration file of the ControlBlock service to “arcade”. after changing the configuration you need to restart the ControlBlock service, e.g., with the command “sudo service controlblockservice restart”.
  2. Connect a (jump) wire to one of the Ground terminals of the ControlBlock.
  3. Use the tool”jstest” to test each of the GPIO pins. To test the pins on the player 1 side use the command “sudo jstest /dev/input/js0”. Use the wire to pull the pins to Ground one after another. Jstest should register this and show a state change for the corresponding button or axis. Pulling the pins to Ground with this configuration means for the ControlBlock driver in this configuration that a button was pressed. To exit the jstest tool press Ctrl-C. To test the pins on the player 2 side use the command “sudo jstest /dev/input/js1” and repeat the above procedure.

Can you observe these virtual button presses?