moonlight-stream / moonlight-android

GameStream client for Android
GNU General Public License v3.0
3.52k stars 532 forks source link

Non-official gamepad support #1124

Open ghost opened 1 year ago

ghost commented 1 year ago

As I like to concentrate all my games on my Game PC, I also have my ROM (SNES, n64) backups there so I can play from any Box TV (android) spread through the house.

This easy setup, however, requires me to use non-official (non-Xbox or non-ps3-4) controllers. And since I'm already adding some extra controllers support, if anyone has the same issue, let me know through this thread so I can provide a PR with a sound library.

Example of gamepads I use:

name (mibox4): SWITCH CO., LTD. Controller (Dinput)

Loyola-IS352 commented 1 year ago

I'm interested in how this would work. Is the gamepad support built in to Moonlight?

I'm interested because I have two android tv boxes that are almost identical (Verizon Stream TV Gen 2 vs. Gen 1) but they handle my gamepads differently. I have several knock-off nintendo switch pro controllers and the Gen 2 doesn't acknowledge the Dpad and it mixes up other buttons. The Gen 1 maps perfectly. Is this something that could be fixed within moonlight?

I'd love a fix for this because I can get <10ms latency on the Gen 2 device when streaming 4k@60fps while the Gen 1 hovers around 15ms.

sudhanshugairola commented 1 year ago

Need xbox mapping or ps gamepad mapping

geogolem commented 4 months ago

I realize its been a long time since this was posted -- but I am sort of interested in something similar... See my post here -- I would appreciate if anybody can provide some more insight.

https://www.reddit.com/r/MoonlightStreaming/comments/1b58bun/setup_sunshine_on_batocera_so_that_i_can_use/