Skip to content

Some bluetooth controller fixes for h700 - #881

Open
AloneInTheDank wants to merge 1 commit into
LoveRetro:mainfrom
AloneInTheDank:main
Open

AloneInTheDank wants to merge 1 commit into
LoveRetro:mainfrom
AloneInTheDank:main

Conversation

@AloneInTheDank

Copy link
Copy Markdown

Hi, I was trying to use a couple different Bluetooth controllers with my Anbernic RG SP: an 8Bitdo SN30 Pro, and a RetroFighter BattlerGC Pro. Neither had its buttons mapped correctly. Also, when I was pairing the controllers my RG SP sometimes got the d-pad stuck in the down position, making the cursor in the settings app always go to the bottom of the list until I exited settings.

Since I don't know anything about this code base I had Claude do most of the work. The main points are:

  1. There's support for button mapping, and the config file is skeleton/SYSTEM/h700/etc/controllers.cfg. I added entries for my 8Bitdo SN30 Pro and RetroFighter BattlerGC Pro.
  2. The Input app (minput) shows more info about button presses.
  3. The Bluetooth settings don't get stuck on button presses.
  4. Bluetooth pairing tries to automatically connect to a device, seems to work okay.
  5. Added a "reset bluetooth" option to the bluetooth settings. It removes all devices and sets the sample rate back to default of 48kHz.

I tried this on my RG SP and it worked for my two controllers. I don't have any other of the devices supported by NextUI to verify if this helps them.

2) The Bluetooth settings don't get stuck on button presses (sometime when I'd pair a controller a button like Down would get stuck and constantly move the selection to the bottom)
3) Bluetooth pairing tries to automatically connect to a device.
4) There's support for button mapping, and the config file is skeleton/SYSTEM/h700/etc/controllers.cfg.  I added entries for my 8Bitdo SN30 Pro and RetroFighter BattlerGC Pro.
@LazaroFilm

Copy link
Copy Markdown

Oh I really want to try this. Let me know if I can also help with adding more controller mappings.

@AloneInTheDank

Copy link
Copy Markdown
Author

@LazaroFilm I published a build at https://github.com/AloneInTheDank/aitd_NextUI/releases/tag/pre-2026-11-06

It's only been tested on my RG SP, but it worked!

@LazaroFilm

Copy link
Copy Markdown

This could be useful to implement more controller mappings: https://github.com/mdqinc/SDL_GameControllerDB

@LazaroFilm

LazaroFilm commented Nov 9, 2026 •

Copy link
Copy Markdown

Here is my config for DualShock 4. It is named with a generic name in the bluetooth and input menu.
Note: L3 is not working for some reason. I only assumed the button number but it still isn't detected in game, but R3 is properly detected.
ABXY are determined by their placements according to nintendo positions.

[Wireless Controller] # DualShock 4 uses this generic name.
button.0 = B #cross
button.1 = A #circle
button.2 = X #square
button.3 = Y #triangle
button.4 = L1
button.5 = R1
button.8 = SELECT
button.9 = START
button.10 = MENU
button.11 = L3 #not working 
button.12 = R3

axis.2 = L2
axis.5 = R2
axis.0 = LX
axis.1 = LY
axis.3 = RX
axis.4 = RY

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants