libretro / retroarch-joypad-autoconfig

RetroArch joypad autoconfig files
MIT License
287 stars 365 forks source link

Retroflag Classic USB Controller Sega MD remap #810

Open QuAzI opened 2 years ago

QuAzI commented 2 years ago

I have Retroflag Classic USB Controller similar to Sega MD joypad For NES/SNES games A,B,X,Y works fine. But for Sega mapping is strange and C, Z, additional mode keys doesn't work properly by default.

There is right remapping for this controller Genesis Plus GX.rmp.txt

Depends on distro it should be saved as Lakka: storage/remappings/Genesis Plus GX/Genesis Plus GX.rmp Android RetroArch: /storage/emulated/0/RetroArch/config/remaps/Genesis Plus GX/Genesis.Plus.GX.rmp

Controller description

Brand Name: AKNES
Model: MPad
All device: Plug and Play
Switch: Plug and Play
Support XINPUT, DINPUT mode and Turbo function
XINPUT: Hold X and plug in, only once(default)
DINPUT: Hold Y and plug in, only once
Turbo: Hold SELECT+L+(A,B,X,Y) to turn ON/OFF this function (Turbo function for A,B,X,Y only)

H68e58991984d4d4daa354a887dff1739j H7a106ffa732b49218d9a999a46a996c02 H5c0589e70dfe4a9cbdc5db2a00e9aae4P

By default it mistakenly detected like Microsoft X-Box 360 pad.cfg.txt (from Lakka joypads/udev)

crocket commented 2 years ago

My hori fighting commander for switch has two modes.

If I plug it before my computer is turned on, it is recognized as HORIPAD S by SDL input driver. HORIPAD S doesn't have home button. If I plug it after my computer is fully booted, it is recognized as HORI Fighting Commander by SDL input driver. HORI Fighting Commander has home button.

I think your controller may also have two modes?

X-Input and DInput were developed by microsoft for x-box controllers. Perhaps, XInput and DInput modes turn your pad into an xbox controller.

RobLoach commented 2 years ago

Are the Device IDs the same as Xbox?

input_libretro_device_p1 = "513"
input_libretro_device_p2 = "513"
input_libretro_device_p3 = "1"
input_libretro_device_p4 = "1"
input_libretro_device_p5 = "1"
input_player1_analog_dpad_mode = "0"
input_player1_btn_a = "0"
input_player1_btn_b = "1"
input_player1_btn_l = "2"
input_player1_btn_l2 = "11"
input_player1_btn_r = "2"
input_player1_btn_r2 = "8"
input_player1_btn_y = "10"
input_player2_analog_dpad_mode = "0"
input_player2_btn_a = "0"
input_player2_btn_b = "1"
input_player2_btn_l = "2"
input_player2_btn_l2 = "11"
input_player2_btn_r = "2"
input_player2_btn_r2 = "8"
input_player2_btn_y = "10"
input_player3_analog_dpad_mode = "0"
input_player4_analog_dpad_mode = "0"
input_player5_analog_dpad_mode = "0"
input_remap_port_p1 = "0"
input_remap_port_p2 = "1"
input_remap_port_p3 = "2"
input_remap_port_p4 = "3"
input_remap_port_p5 = "4"