scrcpy
scrcpy copied to clipboard
Support game controllers
I know its note quite the goal of this project but would it be possible to use an Xbox 360 controller connected to the pc on my android phone trough scrcpy
Technically, it's possible: GameController
.
It would probably add some complexity to make the mappings customizable, though.
Might as well consider keyboard mapping for games like pubg Controlling android via keyboard by using different keys doing many things On Linux. It eliminates the need of emulator.
Any update from this?
Would also like to know
I've been killing myself for hours now looking how to do this. 😔 Pretty much impossible unless you're able to simulate windows touch events using the controller.
It would probably add some complexity to make the mappings customizable, though.
Just need the controller to show up on Panda gamepad app or Octopus app.
+1 to this idea. Would love to be able to use my Xbox controller to play on games that support controllers.
@m4heshd Maybe it's possible to map it to windows key presses? I don't really know though, just a big guess.
hi devs, are you working on this? I was trying to play Minecraft through scrcpy today when I found this issue. Would be great if this makes it to the application!
I'm up for this, too! I've not been able to find a perfect non-usb bluetooth controller that fits comfortably in my hands, and my phone doesn't support charge + usb otg at the same time, especially the device battery drains out quite fast while gaming.
Playing on scrcpy with controller, and with a bigger screen plus not having to worry about battery would be a blast!
From some quick investigation, I've discovered this is possible by using uinput
. Normal apps don't have permission to use it, but the adb shell has. That means we can emulate any input device we want, including controllers. I may try writing a pull request when I have time, but it shouldn't be too much work.
PS: If anybody else wants to confirm it, run this from adb shell.
It's working. Please test #2130 and let me know about any issues.
Hello!
I tried to install and use #2130, but it's not working for me. Should I make any particular configuration?
Please help me!
@scaldav If #2130 doesn't work for you, it's likely your phone isn't supported (at least not without root). Using the same method as in #2632 would probably make it work on all devices, but I'm currently not working on that anymore. Might give it a shot again someday, but I don't guarantee anything.
Hello!
The problem was the SCRCPY_SERVER_PATH variable. I had no idea of how to set it. Now everything works perfectly, thanks a lot!
Thanks you!
Any updates on this I would like to use my Xbox Wired controller via my PC
any updates? pls add...
Yo yo yo I also wanna play diablo immortal with my gamepad! It's the only and only missing feature we need!! plzz