CTNTVirtualPad:setMaxRadius: Difference between revisions
From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight" |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2019.4<br/> | '''Available since:''' Gideros 2019.4<br/> | ||
'''Class:''' [[ | '''Class:''' [[TntVirtualPad]]<br/> | ||
=== Description === | === Description === | ||
| Line 9: | Line 9: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
CTNTVirtualPad:setMaxRadius(padComponent, maxRadius) | CTNTVirtualPad:setMaxRadius(padComponent, maxRadius) | ||
</ | </syntaxhighlight> | ||
| Line 23: | Line 23: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
vPad:setMaxRadius(PAD.COMPO_LEFTPAD, 110) | vPad:setMaxRadius(PAD.COMPO_LEFTPAD, 110) | ||
</ | </syntaxhighlight> | ||
{{VirtualPad}} | {{VirtualPad}} | ||
Latest revision as of 21:23, 24 January 2026
Available since: Gideros 2019.4
Class: TntVirtualPad
Description
Sets the touch radius size detection for left and right virtual pads.
If maxRadius < 1 then touch detection for leftPad is left half Screen and right half screen for rightPad.
CTNTVirtualPad:setMaxRadius(padComponent, maxRadius)
padComponent possible values:
- PAD.COMPO_LEFTPAD
- PAD.COMPO_RIGHTPAD
Parameters
padComponent: (number) the pad joystick component
maxRadius: (number) any number (if < 1 then half screen is max)
Example
vPad:setMaxRadius(PAD.COMPO_LEFTPAD, 110)
- 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