Controller does not work in games
-
Pi Model: 2 B
RetroPie Version Used: 3.8.1
Built From: SD Image
USB Devices connected: Keyboard
Controller used: Kosda Bluetooth Wireless Game Controller Gamepad Joystick
https://www.amazon.com/gp/product/B0104BDNW6/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
Error messages received: NoneThe controller works great in emulationstation but not in games. When I start the game from the console it shows the controller connects and it auto-picks the correct configuration file for it but it's completely unresponsive in the game itself.
Launching the game as follows
`/opt/retropie/emulators/retroarch/bin/retroarch --verbose -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg /home/pi/RetroPie/roms/nes/Legend\ of\ Zelda\,\ The.nes`
See the relevant logs below.
RetroArch [INFO] :: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver. RetroArch [INFO] :: [udev] Adding device /dev/input/event2 as type ID_INPUT_KEYBOARD. RetroArch [INFO] :: [udev] Adding device /dev/input/js0 as type ID_INPUT_KEYBOARD. RetroArch [INFO] :: [udev] Adding device /dev/input/mouse0 as type ID_INPUT_KEYBOARD. RetroArch [INFO] :: [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD. RetroArch [INFO] :: [udev] Adding device /dev/input/event2 as type ID_INPUT_MOUSE. RetroArch [INFO] :: [udev] Adding device /dev/input/js0 as type ID_INPUT_MOUSE. RetroArch [INFO] :: [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE. RetroArch [INFO] :: [udev]: Plugged pad: Gamepad (0a12:0001) on port #0. RetroArch [INFO] :: Autodetect: 1 profiles found RetroArch [INFO] :: Autodetect: selected configuration: /opt/retropie/configs/all/retroarch-joypads/Gamepad.cfg RetroArch [INFO] :: [udev]: Pad #0 (/dev/input/event2) supports 0 force feedback effects. RetroArch [INFO] :: Found joypad driver: "udev".
Any assistance with this would be appreciated.
-
I was getting this same problem with my ipega bluetooth controller. Then I realized that the mappings for the buttons were the problem (the d-pad worked fine).
For some reason I don't know, the button numbers showed in jstest don't correspond to the button numbers necessary to work well in RetroArch. I got the correct numbers saving a config file in RGUI e then checking the numbers in the file saved.
Are you familiarized with linux command line and RetroArch RGUI?
-
Thanks for the response!
I'm very familiar with the Linux command line but not necessarily the RetroArch RGUI.
I'll attempt to run jstest and see if I can figure out if I'm experiencing the same problem as you. In the mean time can you provide me with the configuration files that I need to update the settings in?
Thanks again for the tip. I'm afraid I was running out of ideas. :-(
-
I think you may be on to something. The mapping for my gamepad is located in the below config. I did verify that at the very least the input numbers (per jstest) are correct in the config however it appears that there are duplicate entries for special actions like input_exit_emulator_btn. Can someone verify whether this is expected or not?
/opt/retropie/configs/all/retroarch-joypads/Gamepad.cfg
input_device = "Gamepad" input_driver = "udev" input_r_y_plus_axis = "+3" input_l3_btn = "13" input_r_x_minus_axis = "-2" input_r_btn = "9" input_save_state_btn = "9" input_l2_btn = "6" input_start_btn = "11" input_exit_emulator_btn = "11" input_l_y_minus_axis = "-1" input_l_btn = "8" input_load_state_btn = "8" input_up_btn = "h0up" input_r_y_minus_axis = "-3" input_a_btn = "0" input_b_btn = "1" input_reset_btn = "1" input_down_btn = "h0down" input_r2_btn = "7" input_l_x_plus_axis = "+0" input_l_y_plus_axis = "+1" input_r3_btn = "14" input_right_btn = "h0right" input_state_slot_increase_btn = "h0right" input_x_btn = "3" input_menu_toggle_btn = "3" input_select_btn = "10" input_enable_hotkey_btn = "10" input_l_x_minus_axis = "-0" input_y_btn = "4" input_left_btn = "h0left" input_state_slot_decrease_btn = "h0left" input_r_x_plus_axis = "+2"
Thanks again guys!
-
Please use code blocks when posting config files etc - see the markdown link https://retropie.org.uk/forum/topic/3/read-this-first
I have edited/formatted the posts on this thread for reference.
-
The duplicated entries are correct as one buttons are used as hotkeys etc.
You could try replacing
udev
withsdl2
in the file to see if that helps (you may need to change it in/opt/retropie/configs/all/retroarch.cfg
also. -
Oh okay sorry about that. I'll make that correction in future posts.
I changed the driver from udev to sdl2 and restarted a couple times and that seems to have fixed the problem!
Thanks so much for the help!!!!!
For future reference I edited the above mentioned config and the Gamepad.cfg to resolve the issue!
Thanks again!
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.