Xiaomi Mi BT game controller issues
-
Hi all! I recently got my hands on a Xiaomi Mi BT game controller (GearBest link).
I am using a Pi3 with the newest setup script install (4.0 beta2), binaries only, on an updated Raspbian.
The problem: Emulationstation gamepad setup works nicely, but in game controls are not working at all.I remember fixing this problem by using sdl instead of udev in a previous release. This does not work anymore.
When using jstest on the device, all buttons are mapped exactly like in the config file generated by the controller setup.
Some buttons work after the start but the mapping is completely off. The emulator shows that the gamepad is actually configured in the lower left corner, even though the controller ID is mangled as it is a string of chinese characters ("小米蓝牙手柄.cfg")Additionally, when desperately playing around with the "Setup udev rule" in the bluetooth section of the setup script, I noticed that there is a problem with chinese characters in controller names. I tried to catch this error by changing the script, which resulted in a udev rule I was able to update with the actual controller name. Unfortunately to no effect.
Any ideas for how to fix this? Especially the "make it work inside the games"-part? I presume I should open a github issue for the chinese character issue.
Here my controller config for completeness: pastebin
-
@secutor try sdl2. I had to set a controller to that even though everyone online kept saying sdl
-
@edmaul69 Thanks, I did not mention I already tried that to no posoitive effect. Not only in the controller config but also in the retroarch.cfg. I tried pretty much every potential solution I could find online.
-
Hi,
I found a work around, set up the controller in RetroArch, or change the 小米蓝牙手柄.cfg to the following:input_device = "小米蓝牙手柄"
input_driver = "udev"
input_r_y_plus_axis = "+5"
input_l3_btn = "17"
input_r_x_minus_axis = "-2"
input_start_btn = "15"
input_exit_emulator_btn = "11"
input_l_y_minus_axis = "-1"
input_up_btn = "h0up"
input_r_y_minus_axis = "-5"
input_a_btn = "4"
input_b_btn = "5"
input_reset_btn = "1"
input_down_btn = "h0down"
input_l_x_plus_axis = "+0"
input_l_y_plus_axis = "+1"
input_r3_btn = "18"
input_right_btn = "h0right"
input_state_slot_increase_btn = "h0right"
input_x_btn = "7"
input_menu_toggle_btn = "3"
input_select_btn = "14"
input_enable_hotkey_btn = "10"
input_l_x_minus_axis = "-0"
input_y_btn = "8"
input_left_btn = "h0left"
input_state_slot_decrease_btn = "h0left"
input_r_x_plus_axis = "+2"
input_l_btn = "10"
input_r_btn = "11"
input_l2_btn = "12"
input_r2_btn = "13"
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.