Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    [GPIO] is it possible to map combination Hotkey button into single button?

    GamePad/GPIO/USB encoder
    [gpio] possible map combination hotkey
    6
    19
    10222
    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.
    • Substring
      Substring @screech last edited by

      @screech well, that's risky, be cause other HK combos will never work. But could be done is SELECT is the HK and the QUIT button is wired to both SELECT and START.
      And one more question : what is the RESET button supposed to do ? Reset the game or reset the pi ? If you want to reset the game, it's the HK+A combo

      Again : scripting it would be a lot better, in my opinion

      Former dev - Please reply with @substring so that i am notified when you answer me
      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

      Tick Lpsk 1 Reply Last reply Reply Quote 0
      • Tick Lpsk
        Tick Lpsk @Substring last edited by Tick Lpsk

        @subs said in [GPIO] is it possible to map combination Hotkey button into single button?:

        @screech well, that's risky, be cause other HK combos will never work. But could be done is SELECT is the HK and the QUIT button is wired to both SELECT and START.
        And one more question : what is the RESET button supposed to do ? Reset the game or reset the pi ? If you want to reset the game, it's the HK+A combo

        Again : scripting it would be a lot better, in my opinion

        reset game . but still i just can't think of any other HK + button that more important
        if so can you point me the the guide if i want to learn how to use python script
        thank you

        1 Reply Last reply Reply Quote 0
        • screech
          screech last edited by

          @subs don't you think this wirring can't work ?

          wirring

          Clean your Romset with Universal ROM Cleaner
          Scrape your Romset with Universal XML Scraper

          1 Reply Last reply Reply Quote 0
          • Substring
            Substring last edited by

            @Tick-Lpsk see :
            https://forum.recalbox.com/topic/3504/emulator-exit-button-gpio/11
            https://forum.recalbox.com/topic/3435/game-reset/10
            That's some wip, i can help you for a better integration in recalbox

            @screech It would work. But can't use the quit/reset/screenshot buttons as hotkeys by themselves and use other combos like load/save state, rewind, shaders etc ...

            Former dev - Please reply with @substring so that i am notified when you answer me
            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

            1 Reply Last reply Reply Quote 0
            • Substring
              Substring last edited by

              @Tick-Lpsk please keep us informed

              Former dev - Please reply with @substring so that i am notified when you answer me
              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

              1 Reply Last reply Reply Quote 0
              • Tick Lpsk
                Tick Lpsk last edited by

                first, i don't know why GPIO doesn't recognize hotkey
                others button work perfect
                anyways i found out that i have to use Select button as Hotkey button (Like Select+Start = quit)
                then i've tried screech idea.
                i hot wire select > quit button < start
                the button act weird . it's seem that you can't do it that way
                So. i think the best way is to do a python script as @subs said
                but i have limited knowledge to understand complicated codes stuff 😞
                would you kindly tell me how to do it step-by-step
                Thank You

                1 Reply Last reply Reply Quote 0
                • deryeti
                  deryeti last edited by

                  I have the Same Problem. Is it not possible to add this Exit Button Option to Future Recalbox releases. Would be great for all Cabinet Builders. Maybe just a line in the config.

                  1 Reply Last reply Reply Quote 0
                  • Nachtgarm
                    Nachtgarm last edited by

                    Why don't you guys just go for one more button in the front? Like I did. I know it does not help the script problem, but the usability is great and it's very easy to achieve.

                    0_1472714752757_IMG-20160724-WA0004.png

                    Substring 1 Reply Last reply Reply Quote 0
                    • deryeti
                      deryeti last edited by

                      Of course its not a big deal and all my Cabinet have a HK Button but an Exit Button would be a Nice thing to have in future releases.

                      1 Reply Last reply Reply Quote 0
                      • Substring
                        Substring @Nachtgarm last edited by

                        @Nachtgarm i wonder why there are condoms on your sticks ... Dude, you sure you're doing fine ? 😄

                        Concerning the topic : a button can not have different "functions : it can't be HK +something else. So the only way is the python way.

                        Find your available gpios (i hope you do have some free ones ... If you're susing the gpio driver for your sticks, then we're stuck). From there, we should be able to write down the python and tell you how and where to run it. @supernature2k my dear python + gpio guru, time to show yoyr skills and think about a nice implementation of what we've been working lately for 4.1

                        Former dev - Please reply with @substring so that i am notified when you answer me
                        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                        supernature2k Nachtgarm 2 Replies Last reply Reply Quote 0
                        • supernature2k
                          supernature2k @Substring last edited by

                          @subs sure bro, just tell me how you picture it.

                          Here is my proposal:

                          new option in recalbox.conf

                          gpio.emulatorbutton.quit=3
                          ;gpio.emulatorbutton.reset=5

                          problem: it works very well with retroarch but what about the standalones emus?

                          Pi powered NES | Gameboy HD | RecalStation | RecalDrive
                          Upvote messages if it has been useful ;)

                          Substring 1 Reply Last reply Reply Quote 0
                          • Substring
                            Substring @supernature2k last edited by Substring

                            @supernature2k i rather think about a conf file + a script that would read it. Options should look like in recalbox.conf like "gpyio.pinnumber=state, action" (the gpYio is voluntary haha but name it the way you want)
                            state = pull, push, any handled state
                            action : a set of defined actions (we know how to kill an emulator, as well as run some retroarch commands)

                            Explain how to start this script in S99custom

                            See the picture ?

                            For other emulators, it's not possible, but just quit them. Too bad, gotta move forward. I'm not sure setting all this in the recalbox.conf is a good idea because it may look really messy someday, and that's an option people may not often use. Gotta ask @digitaLumberjack

                            Former dev - Please reply with @substring so that i am notified when you answer me
                            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                            1 Reply Last reply Reply Quote 0
                            • Tick Lpsk
                              Tick Lpsk last edited by

                              im excited ! 🙂

                              1 Reply Last reply Reply Quote 0
                              • Nachtgarm
                                Nachtgarm @Substring last edited by

                                @subs These are not my sticks. It was a cabinet I sold to a customer and therefore I kept the handles untouched and shiny 🙂

                                Substring 1 Reply Last reply Reply Quote 0
                                • Substring
                                  Substring @Nachtgarm last edited by

                                  @Nachtgarm yeah yeah ... you pervert ... 😄 lol

                                  Former dev - Please reply with @substring so that i am notified when you answer me
                                  Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                  Nachtgarm 1 Reply Last reply Reply Quote 0
                                  • Nachtgarm
                                    Nachtgarm @Substring last edited by

                                    @subs You have NO idea 3:-)
                                    0_1472735289773_303782_252649264781475_203369516376117_705379_1436074797_n.jpg

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

                                    Want to support us ?

                                    82
                                    Online

                                    99.7k
                                    Users

                                    28.1k
                                    Topics

                                    187.1k
                                    Posts

                                    Copyright © 2021 recalbox.com