Difference between revisions of "CTNTVirtualPad:setJoyStyle"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 7: | Line 7: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
CTNTVirtualPad:setJoyStyle(padComponent, style) | CTNTVirtualPad:setJoyStyle(padComponent, style) | ||
− | </ | + | </syntaxhighlight> |
Latest revision as of 14:26, 13 July 2023
Available since: Gideros 2019.4
Class: VirtualPad
Description
Sets the VPAD joysticks movement style.
CTNTVirtualPad:setJoyStyle(padComponent, style)
padComponent possible values:
- PAD.COMPO_LEFTPAD
- PAD.COMPO_RIGHTPAD
style possible values:
- PAD.STYLE_CLASSIC (default) joysticks are fixed
- PAD.STYLE_MOVABLE joysticks move where user last touch the screen then is fixed to this position
- PAD.STYLE_FOLLOW joystick follow user finger movement
Parameters
padComponent: (number) the pad component
style: (number) the joystick movement style (default = PAD.STYLE_CLASSIC)
STYLE_MOVABLE is a typo in the class (it should have been MOVEABLE) ;-)
- 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