CTNTVirtualPad:setPosition: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the VPAD joysticks positions. <source lang="lua"> CTNTVirtualPa..."
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2019.4<br/>
'''Available since:''' Gideros 2019.4<br/>
'''Class:''' [[VirtualPad]]<br/>
'''Class:''' [[TntVirtualPad]]<br/>


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




Line 13: Line 13:
*PAD.COMPO_LEFTPAD
*PAD.COMPO_LEFTPAD
*PAD.COMPO_RIGHTPAD
*PAD.COMPO_RIGHTPAD
*PAD.COMPO_BUTTON1
*PAD.COMPO_BUTTON2
*PAD.COMPO_BUTTON3
*PAD.COMPO_BUTTON4
*PAD.COMPO_BUTTON5
*PAD.COMPO_BUTTON6


=== Parameters ===
=== Parameters ===

Latest revision as of 21:23, 24 January 2026

Available since: Gideros 2019.4
Class: TntVirtualPad

Description

Sets the VPAD components positions.

CTNTVirtualPad:setPosition(padComponent, x, y)


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