You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laptop 1980x1200, desktop chrome full size, setting size of div to 60vw 60vh, results in a short wide box, and the joystick movement space is very limited in vertical direction. I've made this change, and also set a Max and Min on the returned X and Y.
I changed the calculation for internalRadius and all is well:
This is the minor change to X / Y to be capped at +/-100
/*** @desc Normalizzed value of X move of stick* @return Integer from -100 to +100*/this.GetX=function(){returnMath.max(-100,Math.min(100,(100*((movedX-centerX)/maxMoveStick)))).toFixed();};/*** @desc Normalizzed value of Y move of stick* @return Integer from -100 to +100*/this.GetY=function(){returnMath.max(-100,Math.min(100,((100*((movedY-centerY)/maxMoveStick))*-1))).toFixed();};
The text was updated successfully, but these errors were encountered:
Laptop 1980x1200, desktop chrome full size, setting size of div to 60vw 60vh, results in a short wide box, and the joystick movement space is very limited in vertical direction. I've made this change, and also set a Max and Min on the returned X and Y.
I changed the calculation for internalRadius and all is well:
This is the minor change to X / Y to be capped at +/-100
The text was updated successfully, but these errors were encountered: