CTNTVirtualPad:setMaxRadius

From GiderosMobile
Revision as of 13:44, 3 December 2020 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the touch radius size detection for left and right virtual pads...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.4
Class: VirtualPad

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)