Difference between revisions of "CTNTVirtualPad:setPosition"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the VPAD components positions.
 
Sets the VPAD components positions.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
CTNTVirtualPad:setPosition(padComponent, x, y)
 
CTNTVirtualPad:setPosition(padComponent, x, y)
 
</source>
 
</source>

Revision as of 14:26, 13 July 2023

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets the VPAD components positions. <syntaxhighlight lang="lua"> CTNTVirtualPad:setPosition(padComponent, x, y) </source>


padComponent possible values:

  • PAD.COMPO_LEFTPAD
  • PAD.COMPO_RIGHTPAD
  • PAD.COMPO_BUTTON1
  • PAD.COMPO_BUTTON2
  • PAD.COMPO_BUTTON3
  • PAD.COMPO_BUTTON4
  • PAD.COMPO_BUTTON5
  • PAD.COMPO_BUTTON6

Parameters

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