CTNTVirtualPad:setPosition

From GiderosMobile
Revision as of 12:51, 3 December 2020 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the VPAD joysticks positions. <source lang="lua"> CTNTVirtualPa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets the VPAD joysticks positions.

CTNTVirtualPad:setPosition(padComponent, x, y)


padComponent possible values:

  • PAD.COMPO_LEFTPAD
  • PAD.COMPO_RIGHTPAD

Parameters

padComponent: (number) the pad component to position
x: (number) position on the x axis
y: (number) position on the y axis