RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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"

    Scheduled Pinned Locked Moved Help and Support
    retroarchhotkey
    4 Posts 2 Posters 339 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EfriimE
      Efriim
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • EfriimE
        Efriim
        last edited by Efriim

        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???

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @Efriim
          last edited by mitu

          @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.

          EfriimE 1 Reply Last reply Reply Quote 0
          • EfriimE
            Efriim @mitu
            last edited by

            @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?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            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.