Event.RIGHT JOYSTICK: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | |||
''' | '''Value:''' rightJoystick<br/> | ||
''' | '''Defined by:''' [[Controller]]<br/> | ||
''' | |||
=== | === Description === | ||
Event for movement of the right joystick. | |||
=== | |||
'''x''': (number) | === Parameters === | ||
'''y''': (number) | '''x''': (number) x vector from -1 to 1<br/> | ||
'''angle''': (number) | '''y''': (number) y vector from -1 to 1<br/> | ||
'''strength''': (number) | '''angle''': (number) angle at which joystick is positioned in radians, left being 0 and increasing in clockwise direction<br/> | ||
'''playerId''': (number) | '''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 05:05, 11 June 2023
Available since: Gideros 2011.6
Value: rightJoystick
Defined by: Controller
Description
Event for movement of the right 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