Skip to content

feat: Add support of Xbox Wireless Adapter#1415

Open
summershrimp wants to merge 1 commit into
moonlight-stream:masterfrom
summershrimp:xow-support
Open

feat: Add support of Xbox Wireless Adapter#1415
summershrimp wants to merge 1 commit into
moonlight-stream:masterfrom
summershrimp:xow-support

Conversation

@summershrimp

@summershrimp summershrimp commented Sep 1, 2024

Copy link
Copy Markdown

For gamer who use Xbox Elite Controller gen1 or Xbox One Controller gen1 and 2, which don't have bluetooth connection.
Or just like my TCL tv, app get wrong keystorke info when OS handle the controller input.
So supporting Xbox Wireless Adapter would make us bypass those limitation and connect up to 8 controller wirelessly and natively.
Driver codes mainly from https://github.com/medusalix/xow

Driver codes mainly from https://github.com/medusalix/xow

Signed-off-by: Hakusai Zhang <xm1994@gmail.com>
@bladeoner

Copy link
Copy Markdown
Contributor

Hi @summershrimp , are you able to compile the changes?

I have tried to compile, but I ran into an error.

@trexx

trexx commented Feb 15, 2025

Copy link
Copy Markdown

Hi @bladeoner

I've successfully compiled an arm64 apk to run on my nonrooted Nvidia Shield. It works with my "Microsoft Xbox Wireless Adapter for Windows 10" (Slim dongle) and my model 1697 (2016) Xbox One Pad. Its been my daily driver for a while now.

I compiled mine in a container with the recommended Android NDK.

Summershrimp - You are a champ.

@bladeoner

Copy link
Copy Markdown
Contributor

Hi @trexx, also with the latest commit?

@trexx

trexx commented Feb 15, 2025

Copy link
Copy Markdown

@bladeoner commit 7960423 the current head of his branch.

@bladeoner

Copy link
Copy Markdown
Contributor

@bladeoner commit 7960423 the current head of his branch.

Thank you for your response, I will do another attempt.

@bladeoner

Copy link
Copy Markdown
Contributor

@trexx I am using the Github workflow pipeline I have built: #1472

@summershrimp

Copy link
Copy Markdown
Author

@bladeoner What's the error?

@bladeoner

Copy link
Copy Markdown
Contributor

@summershrimp I just did a run th error can be seen in the following run: https://github.com/bladeoner/moonlight-android/actions/runs/13346159625/job/37276849440

@bladeoner

bladeoner commented Feb 15, 2025

Copy link
Copy Markdown
Contributor

I think it's the submodule, which is not being initialized.

@summershrimp

Copy link
Copy Markdown
Author

@bladeoner yep, the default parameter of actions/checkout@v4 won't clone submodules.
https://github.com/actions/checkout/blob/85e6279cec87321a52edac9c87bce653a07cf6c2/README.md?plain=1#L117

@bladeoner

Copy link
Copy Markdown
Contributor

@summershrimp I checked out the submodule in a additional step, but I have changed it to the checkout@v4 and is still doesn't initialized.

Did you just add the submodule to the .gitmodules file manually or did you use the following command:
git submodule add <submodule_url>

@bladeoner

Copy link
Copy Markdown
Contributor

@summershrimp I got it fixed, can you do the following in your branch which is linked to this PR:

  • Remove the following from the .gitmodules
    [submodule "app/src/main/jni/libusb"] path = app/src/main/jni/libusb url = https://github.com/libusb/libusb.git
  • Save the .gitmodules file
  • Run the following command:
    git submodule add https://github.com/libusb/libusb.git "app/src/main/jni/libusb"
  • Push the changes to the branch

This will prevent the issue from occurring and correctly download the submodules.

Thanks in advance.

@forkymcforkface

forkymcforkface commented Nov 8, 2025

Copy link
Copy Markdown

I would suggest using https://github.com/dlundqvist/xone as xow hasnt been updated for over 3 years. Even medusalix suggests using xone and dlundqvist is the maintained version, although I dont know if its totally compatible with Andoird. Cheers!

@summershrimp

summershrimp commented Nov 8, 2025 via email

Copy link
Copy Markdown
Author

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.

4 participants