Joystick not works here

Just starting out? Need help? Post your questions and find answers here.
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Joystick not works here

Post 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
Christos
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: S3b5 Joystick not works here

Post 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 ?
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: S3b5 Joystick not works here

Post 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)
Christos
Post Reply