giongto35 / cloud-game

Web-based Cloud Gaming service for Retro Game
https://www.youtube.com/watch?v=GUBrJGAxZZg
Apache License 2.0
2.24k stars 343 forks source link

USB gamepad #414

Closed discordfar closed 9 months ago

discordfar commented 9 months ago

i Try it at https://cloudretro.io/

usb gamepad work in normal screen but automatic config keys and lag controls not remap, not work on full screen

sergystepanov commented 9 months ago

@discordfar

If I understood you correctly, gamepad bindings do not work in the fullscreen mode? Could you clarify what is lag controls? I'll try to look at this problem when I have time.

discordfar commented 9 months ago

@sergystepanov

Exactly, usb gamepad not working in fullscreen mode

in normal screen work but

lag, delay on d-pad not remap keys

sergystepanov commented 9 months ago

Ah, I see. The fullscreen stuff is probably a bug. Will look and fix later. Button remap is not supported for controllers atm and just hardcoded here https://github.com/giongto35/cloud-game/blob/master/web/js/input/joystick.js#L98.

And about d-pad delay. Do you mean it only lags on gamepad and does not on the keyboard controls? Even now? Otherwise cloudretro.io may be slow with some games, and there is a bug that I'm currently trying to fix which causes severe slowdowns on cloudretro.io.

discordfar commented 9 months ago

d-pad delay on usb gamepad and keyboard little delay too ty nan