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

    Joy2Key not reading my controller inputs after update

    Scheduled Pinned Locked Moved Help and Support
    joy2key
    13 Posts 2 Posters 198 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.
    • mituM
      mitu Global Moderator
      last edited by

      Can you run again the debug command and post the output:

      python3 /opt/retropie/admin/joy2key/joy2key_sdl.py kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x00 kpp knp -d 
      
      C 1 Reply Last reply Reply Quote 1
      • C
        Chuckgofer @mitu
        last edited by

        @mitu

        2025-04-19 02:16:36,699 DEBUG  Debugging enabled, running in foreground
        2025-04-19 02:16:36,699 DEBUG  Cannot determine input code for "0x00", value ign                                                                                                                                                                                                                                     ored
        2025-04-19 02:16:36,699 DEBUG  Cannot determine input code for "0x00", value ign                                                                                                                                                                                                                                     ored
        2025-04-19 02:16:36,699 DEBUG  Joy map:
         {'left': 105, 'right': 106, 'up': 103, 'down': 108, 'a': 28, 'b': 57, 'x': 1, '                                                                                                                                                                                                                                     y': 0, 'pageup': 104, 'pagedown': 109}
        2025-04-19 02:16:36,798 DEBUG  Parsing config "8BitDo 8BitDo Pro 2 Wired Control                                                                                                                                                                                                                                     ler.cfg"
        2025-04-19 02:16:36,800 DEBUG  Added config for "8BitDo 8BitDo Pro 2 Wired Contr                                                                                                                                                                                                                                     oller" from "8BitDo 8BitDo Pro 2 Wired Controller.cfg"
        2025-04-19 02:16:36,803 DEBUG  Parsing config "Generic X-Box pad.cfg"
        2025-04-19 02:16:36,805 DEBUG  Added config for "Generic X-Box pad" from "Generi                                                                                                                                                                                                                                     c X-Box pad.cfg"
        2025-04-19 02:16:37,030 DEBUG  Using SDL Version 2.0.10, PySDL2 version 0.9.3.
        2025-04-19 02:16:37,030 DEBUG  Function "SDL_JoystickGetVendor" not found in PyS                                                                                                                                                                                                                                     DL2 0.9.3., adding a local definition for it
        2025-04-19 02:16:37,030 DEBUG  Function "SDL_JoystickGetProduct" not found in Py                                                                                                                                                                                                                                     SDL2 0.9.3., adding a local definition for it
        2025-04-19 02:16:37,030 DEBUG  Creating uinput keyboard devices with events: [(1                                                                                                                                                                                                                                     , 105), (1, 106), (1, 103), (1, 108), (1, 28), (1, 57), (1, 1), (1, 0), (1, 104)                                                                                                                                                                                                                                     , (1, 109)]
        2025-04-19 02:16:37,032 DEBUG  Joystick #0 8BitDo 8BitDo Pro 2 Wired Controller                                                                                                                                                                                                                                      (P:12304, V:11720) added
        2025-04-19 02:16:37,033 DEBUG  Added configuration for known device 8BitDo 8BitD                                                                                                                                                                                                                                     o Pro 2 Wired Controller (P:12304, V:11720), hats: {0: [(1, 'up'), (8, 'left'),                                                                                                                                                                                                                                      (2, 'right'), (4, 'down')]}, buttons: {6: 'pageup', 7: 'pagedown', 4: 'y', 3: 'x                                                                                                                                                                                                                                     ', 1: 'b', 0: 'a'}, axis: {3: [(-1, 'up'), (1, 'down')], 2: [(-1, 'left'), (1, '                                                                                                                                                                                                                                     right')], 1: [(1, 'down'), (-1, 'up')], 0: [(1, 'right'), (-1, 'left')]}
        
        1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator
          last edited by

          The log ouput is truncated, you may want to resize the SSH terminal session to capture the entire output.

          I don't see any errors reported and the configuration is loaded as before (Added configuration for known device 8BitDo...). What happens if you're pressing the buttons while the script is running, started from the debugging command line ?

          C 1 Reply Last reply Reply Quote 1
          • C
            Chuckgofer @mitu
            last edited by

            @mitu
            Here's a pastebin instead.
            https://pastebin.com/RRvwV5av

            In the meantime i will try to test pressing the buttons with the script running

            C 1 Reply Last reply Reply Quote 0
            • C
              Chuckgofer @Chuckgofer
              last edited by

              Running the command while the Retropie Setup menu is open makes the buttons work. Exiting the menu back to Emulationstation and then re-entering the Retropie setup menu causes the controller to go back to not working.

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

                That's strange, since the same type of command is ran when the menus are started. Does the runcommand menu work ? Did you reboot after updating ?

                EDIT: specifically, when starting RetroPie-Setup dialog menus, the following command is ran:

                python3 /opt/retropie/admin/joy2key/joy2key_sdl.py /dev/input/jsX kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x09 kpp knp
                

                You can try running with the -d(debug) parameter to see if any errors are reported, outside of RetroPie-Setup

                python3 /opt/retropie/admin/joy2key/joy2key_sdl.py /dev/input/jsX kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x09 kpp knp -d
                
                C 1 Reply Last reply Reply Quote 1
                • C
                  Chuckgofer @mitu
                  last edited by

                  @mitu I'm going to keep looking for the runcommand menu. I rebooted after updating just now, still not working.

                  Here's the result of the -d command
                  https://pastebin.com/y23WyFH0

                  C mituM 2 Replies Last reply Reply Quote 0
                  • C
                    Chuckgofer @Chuckgofer
                    last edited by

                    Assuming I have the correct runcommand menu, no it does not work in that menu.

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

                      @Chuckgofer said in Joy2Key not reading my controller inputs after update:

                      Here's the result of the -d command

                      Nothing really different than the previous output - no errors logged. Not sure why it's not working though.

                      Assuming I have the correct runcommand menu, no it does not work in that menu.

                      OK. While the RetroPie-Setup is running (and the mapping is not working), can you run the following command (via SSH) and post the output:

                      ps -ef  | grep joy2key
                      
                      C 1 Reply Last reply Reply Quote 1
                      • C
                        Chuckgofer @mitu
                        last edited by

                        @mitu said in Joy2Key not reading my controller inputs after update:

                        ps -ef | grep joy2key

                        pi        1690  1636  0 03:22 pts/0    00:00:00 grep --color=auto joy2key
                        
                        mituM 1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator @Chuckgofer
                          last edited by

                          It looks like the joy2key utility is not started.

                          I'll take a look at it later on, but in the mean time I have reverted the changes that caused this. Update again RetroPie-Setup and the mapping should be working again.

                          C 1 Reply Last reply Reply Quote 1
                          • C
                            Chuckgofer @mitu
                            last edited by

                            @mitu Thank you, that helped.

                            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.