UniversalDynamicInput icon indicating copy to clipboard operation
UniversalDynamicInput copied to clipboard

Odin 2 Portal (Android)

Open WildoBro opened this issue 9 months ago • 13 comments

Input device?

Xbox Wireless Controller

Input device ID?

Android/1/Xbox Wireless Controller

Operating System?

Android

What is the key assignment.

Same as default Xbox Wireless Controller

WildoBro avatar Mar 06 '25 15:03 WildoBro

"Button A" = A' "Button B" = B' "Button X" = X' "Button Y" = Y' "Button R1" = Z' "Start" = Start' "Axis 1-" = Up (Control Stick)' "Axis 1+" = Down (Control Stick)' "Axis 0-" = Left (Control Stick)' "Axis 0+" = Right (Control Stick)' "Axis 14-" = Up (C Stick)' "Axis 14+" = Down (C Stick)' "Axis 11-" = Left (C Stick)' "Axis 11+" = Right (C Stick)' "Axis 17+&Axis 23+" = L' "Axis 18+&Axis 22+" = R' "@(Button L2+Axis 17++Axis 23+)" = L-Analog' "@(Button R2+Axis 18++Axis 22+)" = R-Analog' "Axis 16-" = Up (Dpad)' "Axis 16+" = Down (Dpad)' "Axis 15-" = Left (Dpad)' "Axis 15+" = Right (Dpad)'

WildoBro avatar Mar 06 '25 15:03 WildoBro

Apologies - Did not include the key assignment in the original post... added as a comment above

WildoBro avatar Mar 06 '25 15:03 WildoBro

= Thumb L = Thumb R = Share? = Back = Guide

Here are some double! "Axis 17+&Axis 23+" = Shoulder L "Axis 18+&Axis 22+" = Shoulder R "@(Button L2+Axis 17++Axis 23+)" = Trigger L "@(Button R2+Axis 18++Axis 22+)" = Trigger R

Venomalia avatar Mar 06 '25 16:03 Venomalia

Hmm, I dont see mapping options for these 5 inputs in Dolphin (under GameCube Input): = Thumb L = Thumb R = Share? = Back = Guide

Is it in a different location?

WildoBro avatar Mar 06 '25 17:03 WildoBro

Oh wow ... I manually typed that all in... Maybe you were looking for the contents of GCPiadNew.ini

Here are the contents of GCPadNew.ini

[GCPad1] Device = Android/1/Xbox Wireless Controller Rumble/Motor = Android/0/Device Sensors:Motor 0 Buttons/A = Button A Buttons/B = Button B Buttons/X = Button X Buttons/Y = Button Y Buttons/Z = Button R1 Buttons/Start = Start Main Stick/Up = Axis 1- Main Stick/Down = Axis 1+ Main Stick/Left = Axis 0- Main Stick/Right = Axis 0+ C-Stick/Up = Axis 14- C-Stick/Down = Axis 14+ C-Stick/Left = Axis 11- C-Stick/Right = Axis 11+ Triggers/L = Axis 17+&Axis 23+ Triggers/R = Axis 18+&Axis 22+ Triggers/L-Analog = @(Button L2+Axis 17++Axis 23+) Triggers/R-Analog = @(Button R2+Axis 18++Axis 22+) D-Pad/Up = Axis 16- D-Pad/Down = Axis 16+ D-Pad/Left = Axis 15- D-Pad/Right = Axis 15+ Options/Always Connected = True [GCPad2] Device = Android/1/Xbox Wireless Controller [GCPad3] Device = Android/1/Xbox Wireless Controller [GCPad4] Device = Android/1/Xbox Wireless Controller

WildoBro avatar Mar 06 '25 17:03 WildoBro

It's about the buttons on your controller, what code do they use when you use them.

Venomalia avatar Mar 06 '25 17:03 Venomalia

Got it! I mapped those buttons to test... here are the results

Button L3 = Thumb L Button R3 = Thumb R = Share? (no share button) Back = Back = Guide (No guide button)

WildoBro avatar Mar 06 '25 17:03 WildoBro

Guide is the X box button

Venomalia avatar Mar 06 '25 17:03 Venomalia

"Button A" = A' "Button B" = B' "Button X" = X' "Button Y" = Y' "Start" = Start' "Back" = Back "Axis 1-" = Left Stick Up "Axis 1+" = Left Stick Down "Axis 0-" = Left Stick Left "Axis 0+" = Left Stick Right "Axis 14-" = Right Stick Up "Axis 14+" = Right Stick Down "Axis 11-" = Right Stick Left "Axis 11+" = Right Stick Right "Button L3" = Thumb L "Button R3" = Thumb R "Button L1"= Shoulder L "Button R1" = Shoulder R "@(Button L2+Axis 17++Axis 23+)" = Trigger L "@(Button R2+Axis 18++Axis 22+)" = Trigger R "Axis 16-" = Up (Dpad)' "Axis 16+" = Down (Dpad)' "Axis 15-" = Left (Dpad)' "Axis 15+" = Right (Dpad)'

Venomalia avatar Mar 06 '25 17:03 Venomalia

Yeap, that is every button available in the Odin 2 Portal. Maybe those other Xbox buttons (like Guide/Share) are unmapped?

Hopefully that is not an issue.

WildoBro avatar Mar 06 '25 17:03 WildoBro

Hey Venomalia, If I wanted to make this update locally - would I just be updating the #Assets folder JSON files? Do I also update the individual game files too? Just want to make sure it is even possible with the Odin, since the controller is mapped as device ID "Android/1/Xbox Wireless Controller"

WildoBro avatar Apr 22 '25 17:04 WildoBro

Yes, it should work that way. unfortunately I have never tested how it works on Android.

Venomalia avatar Apr 24 '25 12:04 Venomalia

FYI, I got this working with Wind Waker! I manually edited the 3 required JSON files for this game specifically. I may just do the same for each game I want as they come up, at least until this controller config is supported by default.

Example JSON for the FLAT JSON file for anyone interested:

"Android/1/Xbox Wireless Controller": {
  "Android/1/Xbox Wireless Controller": "../#DefaultDevices/XBOX ONE/Device/Icon.png",
  "`Button A`": "../#DefaultDevices/XBOX ONE/Flat/Button A.png",
  "`Button B`": "../#DefaultDevices/XBOX ONE/Flat/Button B.png",
  "`Button X`": "../#DefaultDevices/XBOX ONE/Flat/Button X.png",
  "`Button Y`": "../#DefaultDevices/XBOX ONE/Flat/Button Y.png",
  "`Button L1`": "../#DefaultDevices/XBOX ONE/Flat/Shoulder L.png",
  "`Button R1`": "../#DefaultDevices/XBOX ONE/Flat/Shoulder R.png",
  "Select": "../#DefaultDevices/XBOX ONE/Flat/Back.png",
  "Start": "../#DefaultDevices/XBOX ONE/Flat/Start.png",
  "`Button L3`": "../#DefaultDevices/XBOX ONE/Flat/Thumb L.png",
  "`Button R3`": "../#DefaultDevices/XBOX ONE/Flat/Thumb R.png",
  "Back": "../#DefaultDevices/XBOX ONE/Flat/Guide.png",
  "`Axis 16-`": "../#DefaultDevices/XBOX ONE/Flat/Pad N.png",
  "`Axis 16+`": "../#DefaultDevices/XBOX ONE/Flat/Pad S.png",
  "`Axis 15+`": "../#DefaultDevices/XBOX ONE/Flat/Pad E.png",
  "`Axis 15-`": "../#DefaultDevices/XBOX ONE/Flat/Pad W.png",
  "`Axis 1-`": "../#DefaultDevices/XBOX ONE/Flat/Left X-.png",
  "`Axis 1+`": "../#DefaultDevices/XBOX ONE/Flat/Left X+.png",
  "`Axis 0+`": "../#DefaultDevices/XBOX ONE/Flat/Left Y+.png",
  "`Axis 0-`": "../#DefaultDevices/XBOX ONE/Flat/Left Y-.png",
  "`Axis 14-`": "../#DefaultDevices/XBOX ONE/Flat/Right X-.png",
  "`Axis 14+`": "../#DefaultDevices/XBOX ONE/Flat/Right X+.png",
  "`Axis 11-`": "../#DefaultDevices/XBOX ONE/Flat/Right Y-.png",
  "`Axis 11+`": "../#DefaultDevices/XBOX ONE/Flat/Right Y+.png",
  "`Axis 17+`&`Axis 23+`": "../#DefaultDevices/XBOX ONE/Flat/Trigger L.png",
  "`Axis 18+`&`Axis 22+`": "../#DefaultDevices/XBOX ONE/Flat/Trigger R.png"
}  

WildoBro avatar May 23 '25 14:05 WildoBro