CTNTVirtualPad:setJoyAsAnalog
From GiderosMobile
Available since: Gideros 2019.4
Class: VirtualPad
Description
Sets VPAD joystick analog mode on/off. <syntaxhighlight lang="lua"> CTNTVirtualPad:setJoyAsAnalog(padComponent, isAnalogic) </source>
padComponent possible values:
- PAD.COMPO_LEFTPAD
- PAD.COMPO_RIGHTPAD
isAnalogic:
- True (default) joystick is in analog mode: it returns the exact angle (in radians) of the joystick and its power
- False: the angle returned is a value ranging form 0 to 7 (eight direction mode). 0 is right and so on in clockwise order. Steps are every 45 degrees
Parameters
padComponent: (number) the pad component
isAnalogic: (bool) is joystick analogic (default = TRUE)
- CTNTVirtualPad:free
- CTNTVirtualPad:setAlpha
- CTNTVirtualPad:setColor
- CTNTVirtualPad:setDefaultButtonSprites
- CTNTVirtualPad:setDefaultJoySprites
- CTNTVirtualPad:setHideDelay
- CTNTVirtualPad:setHideMode
- CTNTVirtualPad:setJoyAsAnalog
- CTNTVirtualPad:setJoyStyle
- CTNTVirtualPad:setMaxRadius
- CTNTVirtualPad:setPosition
- CTNTVirtualPad:setScale
- CTNTVirtualPad:setTextures
- CTNTVirtualPad:start
- CTNTVirtualPad:stop