linuxserver / docker-emulatorjs

Web based retro emulation frontend with rom scanning and automated art ingestion.
GNU General Public License v3.0
512 stars 51 forks source link

IOS touchscreen controls. #13

Closed bu2d closed 2 years ago

bu2d commented 2 years ago

Unable to use touchscreen controls while on IOS.

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

thelamer commented 2 years ago

I can mash an amateur absolute positioned joystick nipple and some buttons on the page over the rendered canvas, but in general it is not how I want to solve touchscreen interface stuff. Really I want touch to be functional upstream in Retroarch emscripten builds so people can load in their own overlays and tweak them how they want, you also have the maintenance and support.

The missing piece is overlay support in: https://github.com/libretro/RetroArch/blob/master/input/drivers/rwebinput_input.c It needs touch mapped like they do for mouse: https://emscripten.org/docs/api_reference/html5.h.html#touch https://github.com/libretro/RetroArch/blob/master/input/drivers/rwebinput_input.c#L261-L279 Then referenced properly in input_overlay.

It is on my radar, but I am focused now on expanding emulator compatibility and getting completely rid of emulatorjs blobs.

thelamer commented 2 years ago

closing ref https://github.com/linuxserver/emulatorjs/issues/22

thelamer commented 2 years ago

Added in 1.6.0, not perfect notably multi touch for button input is missing. This will improve over time.