Joy2Key not reading my controller inputs after update
-
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
-
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')]}
-
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 ?
-
@mitu
Here's a pastebin instead.
https://pastebin.com/RRvwV5avIn the meantime i will try to test pressing the buttons with the script running
-
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.
-
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-Setuppython3 /opt/retropie/admin/joy2key/joy2key_sdl.py /dev/input/jsX kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x09 kpp knp -d
-
@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 -
Assuming I have the correct runcommand menu, no it does not work in that menu.
-
@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
-
@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
-
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.
-
@mitu Thank you, that helped.
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.