inolen / quakejs

1.45k stars 191 forks source link

any way to add touch controls to make it mobile-friendly? #77

Open voltuer opened 3 years ago

ghost commented 3 years ago

I added NippleJS to my build (https://quake.games). I used https://yoannmoi.net/nipplejs/#demo

Works pretty well, but vertical-look makes is a bit too chaotic. There is also an Android native build here, https://play.google.com/store/apps/details?id=ws.openarena.sdl&hl=en_US&gl=US And there is an Occulus version being built https://www.youtube.com/watch?v=-jgpVbIBq7Y Author is on Q3e discord, but I don't know that he's release source code. Supposed to also work on Android.

My version detects mobile via user-agent and also sets absolute mouse position from a touch tap for controlling menus. It does not yet support popup mobile keyboard for commands and settings but it is on my TODO list.