Fire button (KEY_LEFTCTRL) as enter key in main menu
  • I am stuck with getting the fire button to work in the main menu on PiPLAY. The joystick is working fine to navigate the menu but I cannot seem to get 'Enter' key to work, this is the last piece of the puzzle in being keyboard free :)

    I am using retrogame for my in game controls and they keys are all mapped correctly as I have my buttons linked direct to the GPIO board. So for example I am able to 'fire' in games using mame4all, I have mapped KEY_LEFTCTRL.

    What I would like to do is press the player 1 fire button (KEY_LEFTCTRL) as Enter key in main menu.

    Any help would be appreciated
  • @davidsford - you need to edit the controller.yaml file. it is located in /home/pi/pimame/pimame-menu

    under KEYBOARD: -> SELECT -> you can either add another entry, or just change one of the current entries it should look like
      - pygame.K_LCTRL
    Be careful to keep the same number of spaces (2 before the hyphen, 1 after the hyphen). It can screw things up if they are wrong!
  • great, thank! works perfect :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!