Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support usb xinput as gamepad #4

Open
signdo opened this issue Jan 23, 2025 · 1 comment
Open

Feature request: Support usb xinput as gamepad #4

signdo opened this issue Jan 23, 2025 · 1 comment

Comments

@signdo
Copy link

signdo commented Jan 23, 2025

Can support usb xinput as a gamepad?
Maybe it will very useful.

@umer0586
Copy link
Owner

Hi, thanks for suggestion

To make it work like an Xbox controller on your PC, you’ll need something like ViGEm (Virtual Gamepad Emulation Framework) on the PC side. With this, you can emulate XInput actions based on the messages received from DroidPad. The app doesn’t support direct USB serial communication right now. But you can still get it working over USB by using ADB port forwarding or ADB reverse.

To make it work over USB:

  • First, enable USB debugging on your Android device (Developer Options).
  • Plug your device into the PC with a USB cable.
  • Run this adb command on your PC:
    adb reverse tcp:8080 tcp:8080
    What this does is forward any data sent to port 8080 on the phone to port 8080 on your PC.
  • Now, go into DroidPad and set up the connection:
    • Choose WebSocket or TCP in the settings.
    • Set the IP to 127.0.0.1 (loopback address) and port to 8080

Set up a TCP or WebSocket server listening on port 8080 to grab whatever DroidPad is sending. This communication will still be IP based but on USB

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

No branches or pull requests

2 participants