Bug #607
Digital joystick functions do not work in Firefox.
Start date:
12/06/2020
Due date:
% Done:
0%
Estimated time:
1:00 h
Affected version:
Description
I've known about this one for a while, but for some reason had never reported the problem.
Since Firefox has a different implementation of the Gamepad API, the axes are different.
I made an adjustment to the Gamepad/Joystick functions to compensate for this.
Updated by Brian Flanagan almost 3 years ago
- Status changed from Resolved to Closed
Verified working!
Updated by malcolm harvey over 2 years ago
Current issue with firefox using the below code, works ok in chrome,edge,opera,brave
If you move joystick left and right only in firefox it is not correct. (Wrong direction moves it).
..
eg:
#splashScreen:false
#manifest:"aoz"
XLOGO = 10
YLOGO = 50
Actor "pixL", Image$="pixl_logo.png", X=XLOGO, Y=YLOGO
Do
if JLeft(0) Then XLOGO = XLOGO -10
if JRight(0) Then XLOGO = XLOGO +10
Actor "pixL", XLOGO,YLOGO
Wait Vbl
Loop