cathery / sys-con

Nintendo Switch sysmodule that allows support for third-party controllers
GNU General Public License v3.0
967 stars 65 forks source link

Xbox One Titanfall 2/PDP/PowerA controllers support #30

Closed EzioisAwesome56 closed 4 years ago

EzioisAwesome56 commented 5 years ago

i assume wired xbox one controllers are different from wireless ones that you use with a micro usb cable, as when i go to plug in my controller, its little light never lights up and its buttons do nothing.

I know the sys-module itself is functional, as using a dualshock 3 over usb works as intended.

if it helps any, i think the ids for my controller are VID_24C6 and PID_543A

cathery commented 5 years ago

It seems you have a PowerA controller. It's not yet recognized, but I'm planning to add this soon. Can you launch this applet and send me a screenshot of your scan? Make sure only the PowerA controller is connected. https://files.catbox.moe/re60qo.rar

EzioisAwesome56 commented 5 years ago

heres the ouput of that homebrew, dunno why theres 3 things when only the xbox controller is plugged in but 2037080908400600-DB1426D1DFD034027CECDE9C2DD914B8

cathery commented 5 years ago

Each device can have multiple interfaces, this is normal. Give me a moment

cathery commented 5 years ago

Can you try this version of the sysmodule? https://files.catbox.moe/p7mpg3.rar

EzioisAwesome56 commented 5 years ago

unfortunately, that did not seem to work. the light still does not activate, nor do the buttons register anything.

(the rest of the module is working, so its installed right)

cathery commented 5 years ago

Can you send me the log? It's located at sdmc:/config/sys-con/log.txt

EzioisAwesome56 commented 5 years ago

ignore the fact the date is in 2037; side effect of running linux on switch i never bothered to correct. log.txt

cathery commented 5 years ago

Can you try this version? https://files.catbox.moe/5zbqou.rar

EzioisAwesome56 commented 5 years ago

still doesnt work. However, plugging in the controller makes the little controller icon appear in the bottom left, and unplugging it makes it go away. Light on controller still doesnt come on and buttons still do nothing, however.

heres the log file for that run also, i unplugged it and plugged it back in a few times also. log.txt

cathery commented 5 years ago

It seems like it has a different implementation from the official Xbox One controller. It's a shame, but maybe i'll see if i can adjust to it

cathery commented 5 years ago

Tell me if this build works https://files.catbox.moe/nefssl.rar

EzioisAwesome56 commented 5 years ago

unfortunately this appears to have the same result as last time, little controller icon on bottom left, but no light and buttons don't work.

newest log file: log.txt

cathery commented 5 years ago

Small revision https://files.catbox.moe/fx4gyr.rar

ghost commented 5 years ago

I bought one of these today and that last revision also gives me the icon at bottom left but no response https://www.ebgames.com.au/product/xbox-one/234754-xbox-one-wired-controller-white

ghost commented 5 years ago

log.txt 2019110818053200-DA63280140B1530CD17755515D814CFE

EzioisAwesome56 commented 5 years ago

I bought one of these today and that last revision also gives me the icon at bottom left but no response

same deal here, icon in left, no light or button responses on newest build log.txt

cathery commented 5 years ago

Can you tell me if this build works? https://files.catbox.moe/ksumxe.rar

ghost commented 5 years ago

Works amazing! Everything I tried works except for Binding of isaac doesn't register inputs

cathery commented 5 years ago

yooo

ghost commented 5 years ago

Tried Goose game, DKC tropical, saint's row, diablo 3, monkey ball, link's awakening, retroarch, gzdoom, & quake and all worked perfect, but yeah binding of isaac wouldn't respond to anything

Amazing work cathery :):)

ghost commented 5 years ago

Ah looks like it had a day 1 update to add support!

cathery commented 5 years ago

@Milenko7 can you try this version to make sure it still works? https://files.catbox.moe/30byxg.rar

ghost commented 5 years ago

Yep works fine!

cathery commented 5 years ago

Great! @EzioisAwesome56 Please let me know if your controller works with this version https://files.catbox.moe/30byxg.rar

Txustra commented 4 years ago

My PDP controller (same as @Milenko7 ) does not work. The Switch recognise it and shows it in the controller screen as USB, but inputs do not work. No light in the controller neither.

ghost commented 4 years ago

@Txustra Are you using this one? https://files.catbox.moe/30byxg.rar I have to unplug and plug it back in after it's on the homescreen then press the xbox button for it to start working

cathery commented 4 years ago

That should be fixed in release 0.4.0, Does it not work still?

Txustra commented 4 years ago

Still not working for me with that revision nor 0.4.0 :<

cathery commented 4 years ago

@Txustra Does this version work? https://files.catbox.moe/tzw5v7.rar

Txustra commented 4 years ago

@Txustra Does this version work? https://files.catbox.moe/tzw5v7.rar

It does not work yet even Switch recognises it... dunno what's happening

cathery commented 4 years ago

It seems your PDP controller needs to be sent a driver-specific packet before it starts working. Without knowing what it is, I can't support that controller. Can you download this diagnostics tool and tell me what your controller's VID and PID are? https://files.catbox.moe/re60qo.rar

Txustra commented 4 years ago

Sure: image

cathery commented 4 years ago

It looks like your controller has the same 2 interfaces as Milenko's controller, so it should work the same. This version tries to use the third one, but i doubt it will work https://files.catbox.moe/tzw5v7.rar

Txustra commented 4 years ago

You are right... I don't know what's the problem then...

EzioisAwesome56 commented 4 years ago

Sorry for this late reply, life got in the way yesterday.

That build you linked when you pinged me unfortunately does not working with my controller. Little controller icon in the left but no light or buttons yet still.

Heres the newest log file: log.txt

EDIT: I read the thread a little and tried pressing the xbox button, didnt help. Also, i think this build stops showing the controller icon after a bit for some reason.

EDIT 2: 4.0 also doesnt work, and it seems to make the controller icon flash 3 times before it just stops. heres the log of that version also log_4.0.txt

cathery commented 4 years ago

Can you test this build? https://files.catbox.moe/3e0jbl.rar

EzioisAwesome56 commented 4 years ago

still doesnt work, controller icon appears in the bottom but buttons do not register + led does not turn on. However, the xbox button appears to register being pressed, as it seems to make the controller icon disappear for a moment after being pressed, then pop back up after a while log.txt

cathery commented 4 years ago

The Xbox button sends a verification request to the host and turns off if it doesn't respond. That just means there's no actual communication going on. Do you know if it disappeared on previous builds too?

EzioisAwesome56 commented 4 years ago

The Xbox button sends a verification request to the host and turns off if it doesn't respond. That just means there's no actual communication going on. Do you know if it disappeared on previous builds too?

im unsure, i can go grab an earlier build and test it real fast

EDIT: went and redownloaded this build: https://files.catbox.moe/5zbqou.rar (the first one to show the controller icon) and can confirm the controller icon goes away for a bit if i press the xbox button.

cathery commented 4 years ago

Try this version: https://files.catbox.moe/sw1b9n.rar

EzioisAwesome56 commented 4 years ago

same result as last time, no led, no button registers, controller icon and xbox button shows same behavior as last time log.txt

cathery commented 4 years ago

Try this one: https://files.catbox.moe/ehjdrw.rar

EzioisAwesome56 commented 4 years ago

This time the controller's little LED turned on, but none of the buttons work. The xbox button still makes the controller icon disappear and reappear also. log.txt

cathery commented 4 years ago

Alright, we're getting somewhere! Try this build https://files.catbox.moe/wbf85d.rar

EzioisAwesome56 commented 4 years ago

uh, now the LED doesnt turn on at all...weird

buttons still do nothing and xbox button has same behavior as before log.txt

cathery commented 4 years ago

This one tries just about every init packet i can think of: https://files.catbox.moe/2to2tu.rar

EzioisAwesome56 commented 4 years ago

alright, this time the led comes on, but no buttons do anything. HOWEVER, pressing the xbox button does NOT make the controller icon go away, instead remaining on the entire time. log.txt

cathery commented 4 years ago

Alright, I've changed some packets around https://files.catbox.moe/mv9beh.rar

EzioisAwesome56 commented 4 years ago

same result as the last build, i also tried both usb ports and it still does not register inputs. log.txt

cathery commented 4 years ago

So the controller doesn't go away when you press the button? cool