Difference between revisions of "CTNTVirtualPad:setPosition"
From GiderosMobile
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
− | Sets the VPAD | + | Sets the VPAD components positions. |
<source lang="lua"> | <source lang="lua"> | ||
CTNTVirtualPad:setPosition(padComponent, x, y) | CTNTVirtualPad:setPosition(padComponent, x, y) |
Revision as of 12:57, 3 December 2020
Available since: Gideros 2019.4
Class: VirtualPad
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
- 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