xbox wireless controller - xbox button not working
-
i removed the hotkey_enable_btn from /opt/retropie/configs/all/retroarch/autoconfig/Xbox Wireless Controller.cfg but it did not help.
i also greped for hotkey_enable_btn in /opt/retropie/emulators/retroarch
Maybe it is mapped somewhere else?
Could i do a double mapping of maybe select with a long press or something?
I saw this in the config
# Adds a delay in frames before the assigned hotkey blocks input. Useful if the the # hotkey input is mapped to another action. # input_hotkey_block_delay = "5"
Can i just map hotkey to select and press it longer?
EDIT:
When i do a grep -v "#" retroarch.cfg everything is default and the only two lines which are not commented out are the ones i added.
I also upgraded the xbox controller to latest firmware.
-
@fnpanic said in xbox wireless controller - xbox button not working:
Maybe it is mapped somewhere else?
No, these are the places where - by default - it would be.
Could i do a double mapping of maybe select with a long press or something?
Yes, you already did this, with Select.
I saw this in the config
# Adds a delay in frames before the assigned hotkey blocks input. Useful if the the # hotkey input is mapped to another action. # input_hotkey_block_delay = "5"
Can i just map hotkey to select and press it longer?
Yes, in fact EmulationStation offers this option if you don't select any hotkey enable button. Lots of users without a dedicated button use it this way and it works fine.
I'm confused as how ES detects the button, but the generated
.cfg
doesn't contain the properhotkey_enable_btn
. You're choosing the Xbox/Share button as 'Hokey Enable' in the mapping dialog and it's correctly read (i.e. Button 8) by EmulationStation ? -
I think there is a misunderstanding from my side. The Xbox button is not the share button according to the docs.
If you have the latest Xbox Wireless Controller, such as the one included with Xbox Series X|S, you’ll notice an additional button nested between the View button and the Menu button . That’s the Share button .
Look at this picture:
I mapped the Xbox button which is proper mapped by es to button 8 but does not work in retroarch for some reason. I did not test the share button set to f12. I will do this tomorrow.
Mapping select to hotkey works so far pretty good.
I will report back and if it works we should put this somewhere in the docs or make it default. I can submit a PR if needed.
quick update:
i tested with the share button but does not work. I now set the select button as hotkey and this works. For me the two buttons do not work in retroarch.
-
@fnpanic said in xbox wireless controller - xbox button not working:
i tested with the share button but does not work. I now set the select button as hotkey and this works. For me the two buttons do not work in retroarch.
Can you post the
.cfg
file produced by EmulationStation when you select the Xbox button ? -
you mean this one?
/opt/retropie/configs/all/retroarch/autoconfig/Xbox\ Wireless\ Controller.cfg
-
-
It is a genuine XBox wireless controller for xbox series X. I updated to the latest firmware.
Here is the config generated by es:
input_device = "Xbox Wireless Controller" input_driver = "udev" input_enable_hotkey_btn = "8" input_r3_btn = "10" input_r_y_minus_axis = "-4" input_r_y_minus_axis_label = "Right Analog Y-" input_l_btn = "4" input_l_btn_label = "LB" input_load_state_btn = "4" input_r_y_plus_axis = "+4" input_r_y_plus_axis_label = "Right Analog Y+" input_up_btn = "h0up" input_up_btn_label = "D-Pad Up" input_left_btn = "h0left" input_left_btn_label = "D-Pad Left" input_state_slot_decrease_btn = "h0left" input_select_btn = "7" input_r2_axis = "+5" input_r2_axis_label = "RT" input_r_x_minus_axis = "-3" input_r_x_minus_axis_label = "Right Analog X-" input_l_y_plus_axis = "+1" input_l_y_plus_axis_label = "Left Analog Y+" input_l_x_plus_axis = "+0" input_l_x_plus_axis_label = "Left Analog X+" input_right_btn = "h0right" input_right_btn_label = "D-Pad Right" input_state_slot_increase_btn = "h0right" input_l2_axis = "+2" input_l2_axis_label = "LT" input_l_x_minus_axis = "-0" input_l_x_minus_axis_label = "Left Analog X-" input_r_x_plus_axis = "+3" input_r_x_plus_axis_label = "Right Analog X+" input_l3_btn = "9" input_r_btn = "5" input_r_btn_label = "RB" input_save_state_btn = "5" input_l_y_minus_axis = "-1" input_l_y_minus_axis_label = "Left Analog Y-" input_y_btn = "2" input_y_btn_label = "X" input_x_btn = "3" input_x_btn_label = "Y" input_menu_toggle_btn = "3" input_down_btn = "h0down" input_down_btn_label = "D-Pad Down" input_start_btn = "6" input_exit_emulator_btn = "6" input_b_btn = "0" input_b_btn_label = "A" input_reset_btn = "0" input_a_btn = "1" input_a_btn_label = "B"
-
..
input_enable_hotkey_btn = "8"
..OK, so the hotkey enable button is saved correctly, just like in the profile that RetroArch has online. I don't understand why it doesn't work in-game, it's correctly configured in the
.cfg
file. -
Me too. Is there a debug mode to see what is loaded and what is pressed?
-
I would guess that the vendor is and the product is do not match any udev rule so only the buttons which are common on all gamepads work.
-
@fnpanic said in xbox wireless controller - xbox button not working:
Me too. Is there a debug mode to see what is loaded and what is pressed?
You can add
libretro_log_level = 0
toretroarch.cfg
and run with verbose logging, but I don't know if there's more debug info shown for the input system in RetroArch.I would guess that the vendor is and the product is do not match any udev rule so only the buttons which are common on all gamepads work.
I don't think
udev
and Prod/Vendor ID have an influence here. RetroArch loads the.cfg
profile based on device name and the Product/Vendor IDs are optional - though you're still running an older version of RetroPie because recent versions add the vend/prod IDs to the.cfg
file. -
Are you sure you have a genuine Xbox controller ?
-
100% sure. I bought it directly form Amazon (not marketplace) and the official firmware update tool worked also.
The controller works perfectly with es and Linux. Only libretro seems to ignore the none standard button (xbox).
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.