Difference between revisions of "Event.LEFT JOYSTICK"
From GiderosMobile
Line 3: | Line 3: | ||
'''Value:''' leftJoystick<br/> | '''Value:''' leftJoystick<br/> | ||
=== Description === | === Description === | ||
− | Event for movement of the left joystick | + | <translate>Event for movement of the left joystick</translate> |
=== Parameters === | === Parameters === | ||
− | '''x''': (number) x vector from -1 to 1<br/> | + | '''x''': (number) <translate>x vector from -1 to 1</translate><br/> |
− | '''y''': (number) y vector from -1 to 1<br/> | + | '''y''': (number) <translate>y vector from -1 to 1</translate><br/> |
− | '''angle''': (number) angle at which joystick is positioned in radians, left being 0 and increasing in clockwise direction<br/> | + | '''angle''': (number) <translate>angle at which joystick is positioned in radians, left being 0 and increasing in clockwise direction</translate><br/> |
− | '''strength''': (number) distance vector from the center to current position from 0 to 1<br/> | + | '''strength''': (number) <translate>distance vector from the center to current position from 0 to 1</translate><br/> |
− | '''playerId''': (number) id of controller/player<br/> | + | '''playerId''': (number) <translate>id of controller/player</translate><br/> |
Revision as of 13:32, 23 August 2018
Available since: Gideros 2011.6
Value: leftJoystick
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