Difference between revisions of "Event.LEFT JOYSTICK"

From GiderosMobile
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Value</translate>:''' leftJoystick<br/>
+
'''Value:''' leftJoystick<br/>
=== <translate>Descriptio</translate>n ===
+
'''Defined by:''' [[Controller]]<br/>
<translate>Event for movement of the left joystick</translate>
+
 
=== <translate>Parameters</translate> ===
+
=== Description ===
'''x''': (number) <translate>x vector from -1 to 1</translate><br/>
+
Event for movement of the left joystick.
'''y''': (number) <translate>y vector from -1 to 1</translate><br/>
+
 
'''angle''': (number) <translate>angle at which joystick is positioned in radians, left being 0 and increasing in clockwise direction</translate><br/>
+
=== Parameters ===
'''strength''': (number) <translate>distance vector from the center to current position from 0 to 1</translate><br/>
+
'''x''': (number) x vector from -1 to 1<br/>
'''playerId''': (number) <translate>id of controller/player</translate><br/>
+
'''y''': (number) y vector from -1 to 1<br/>
 +
'''angle''': (number) angle at which joystick is positioned in radians, left being 0 and increasing in clockwise direction<br/>
 +
'''strength''': (number) distance vector from the center to current position from 0 to 1<br/>
 +
'''playerId''': (number) id of controller/player<br/>
 +
 
 +
{{Controller}}

Latest revision as of 06:04, 11 June 2023

Available since: Gideros 2011.6
Value: leftJoystick
Defined by: Controller

Description

Event for movement of the left joystick.

Parameters

x: (number) x vector from -1 to 1
y: (number) y vector from -1 to 1
angle: (number) angle at which joystick is positioned in radians, left being 0 and increasing in clockwise direction
strength: (number) distance vector from the center to current position from 0 to 1
playerId: (number) id of controller/player