Page 1 of 1

Joystick not works here

Posted: Sat Jun 22, 2024 7:58 pm
by plouf
never try before in earliel Spider versions

But joystick not work at all

i.e neither example works in desktop (firefox/edge), neither android

initsjoystick reports 0

Re: S3b5 Joystick not works here

Posted: Sun Jun 23, 2024 6:34 am
by Fred
It works as expected here with the Joystick.pb example (tested with an XBox controller). You need to be sure the browser page gets the focus. Can anyone else confirm ?

Re: S3b5 Joystick not works here

Posted: Sun Jun 23, 2024 7:16 am
by plouf
ok my mistake

first think i did wrong is that initjoystick() returns 0 up to a point you push a button, up to that point joystick is not "available" to browser

my second mistake is that example works in the first joystick reported by OS :) (desktop)
but android see joystick numbers revered... (i tested with dual joypad adaptor)