moonlight-android icon indicating copy to clipboard operation
moonlight-android copied to clipboard

feat: Add support of Xbox Wireless Adapter

Open summershrimp opened this issue 1 year ago • 14 comments

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

summershrimp avatar Sep 01 '24 17:09 summershrimp

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

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

bladeoner avatar Feb 13 '25 15:02 bladeoner

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.

trexx avatar Feb 15 '25 10:02 trexx

Hi @trexx, also with the latest commit?

bladeoner avatar Feb 15 '25 10:02 bladeoner

@bladeoner commit 7960423a4b7ada4ac1aa9819912f5f765a6721c5 the current head of his branch.

trexx avatar Feb 15 '25 11:02 trexx

@bladeoner commit 7960423a4b7ada4ac1aa9819912f5f765a6721c5 the current head of his branch.

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

bladeoner avatar Feb 15 '25 12:02 bladeoner

@trexx I am using the Github workflow pipeline I have built: https://github.com/moonlight-stream/moonlight-android/pull/1472

bladeoner avatar Feb 15 '25 12:02 bladeoner

@bladeoner What's the error?

summershrimp avatar Feb 15 '25 12:02 summershrimp

@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 avatar Feb 15 '25 15:02 bladeoner

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

bladeoner avatar Feb 15 '25 15:02 bladeoner

@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

summershrimp avatar Feb 15 '25 16:02 summershrimp

@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 avatar Feb 15 '25 16:02 bladeoner

@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.

bladeoner avatar Feb 15 '25 17:02 bladeoner

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!

forkymcforkface avatar Nov 08 '25 22:11 forkymcforkface

Xone is kernel driver, so it’s hard to migrate to userspace. Using that is equal to rewrite everything

Kevin @.***>于2025年11月9日 周日06:19写道:

forkymcforkface left a comment (moonlight-stream/moonlight-android#1415) https://github.com/moonlight-stream/moonlight-android/pull/1415#issuecomment-3507038883

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.

— Reply to this email directly, view it on GitHub https://github.com/moonlight-stream/moonlight-android/pull/1415#issuecomment-3507038883, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOKG7Q3BQQZAYFEJVJGJHD33ZT6DAVCNFSM6AAAAACLROZEROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKMBXGAZTQOBYGM . You are receiving this because you were mentioned.Message ID: @.***>

summershrimp avatar Nov 08 '25 23:11 summershrimp