Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Retroarch hotkey "BTN_1 or BTN_2"



  • PSclassic 1.5a PSU
    RetroPie: N/A
    Retroarch: 1.77

    I can't find this anywhere else. I'm hoping there is an answer anyways.
    I'd like to configure retroarch's quit hotkey; to "BTN_1 or BTN_2".
    Multiple assignments for the same hotkey, so that I could press either button with the same result.

    Sorry I don't have a Pi anymore, I gifted it, but I hope you can help me anyways.



  • Looks to not be possible, though I can map a "btn", "mbtn" and "key". In this case I need to bind two keys.

    Does anyone know where to put a script that will execute on a key press?
    killall retroarch
    or how to exit cleanly?
    killp retroarch 5???


  • Global Moderator

    @Efriim Here's a better idea - use the Network command interface in RetroArch (see https://docs.libretro.com/development/retroarch/network-control-interface/#enabling) and configure the triggerhappy daemon to listen for certain key/button presses to send the QUIT command to RetroArch.
    triggerhappy is installed and started by default on Raspbian/RetroPie). Some configuration is needed and you'd need to install netcat or any of the similar packages, but it's quite simple to do.



  • @mitu
    I don't have triggerhappy on a Playstation Classic, but it is linux and has a systemd.

    There is with "Network Command interface" also "Command interface" support but I don't know how to use this, I guess maybe echo a command at the process?


Log in to reply
 

Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.