Difference between revisions of "CTNTVirtualPad.new"
From GiderosMobile
m (done? correct?) |
(slowly :-)) |
||
Line 8: | Line 8: | ||
CTNTVirtualPad.new(parent, texturePack, padSticks, padButtons, borderSpace, layerIndex, vBorderSpace, restrict) | CTNTVirtualPad.new(parent, texturePack, padSticks, padButtons, borderSpace, layerIndex, vBorderSpace, restrict) | ||
</source> | </source> | ||
+ | |||
+ | |||
+ | '''padSticks''' possible values: | ||
+ | *PAD.STICK_NONE | ||
+ | *PAD.STICK_SINGLE | ||
+ | *PAD.STICK_DOUBLE | ||
+ | |||
+ | '''padButtons''' possible values: | ||
+ | *PAD.BUTTONS_NONE | ||
+ | *PAD.BUTTONS_ONE | ||
+ | *PAD.BUTTONS_TWO | ||
+ | *PAD.BUTTONS_THREE | ||
+ | *PAD.BUTTONS_FOUR | ||
+ | *PAD.BUTTONS_FIVE | ||
+ | *PAD.BUTTONS_SIX | ||
=== Parameters === | === Parameters === | ||
Line 13: | Line 28: | ||
'''texturePack''': (TextureBase) the texture pack of the TNT Virtual Pad<br/> | '''texturePack''': (TextureBase) the texture pack of the TNT Virtual Pad<br/> | ||
'''padSticks''': (number) number of pad sticks<br/> | '''padSticks''': (number) number of pad sticks<br/> | ||
− | '''padButtons''': (number) number of buttons | + | '''padButtons''': (number) number of buttons<br/> |
'''borderSpace''': (number) border space value<br/> | '''borderSpace''': (number) border space value<br/> | ||
'''layerIndex''': (number) layer value '''optional'''<br/> | '''layerIndex''': (number) layer value '''optional'''<br/> |
Revision as of 08:33, 3 December 2020
Available since: Gideros 2019.4
Class: VirtualPad
Description
Creates a new TNT Virtual Pad object.
CTNTVirtualPad.new(parent, texturePack, padSticks, padButtons, borderSpace, layerIndex, vBorderSpace, restrict)
padSticks possible values:
- PAD.STICK_NONE
- PAD.STICK_SINGLE
- PAD.STICK_DOUBLE
padButtons possible values:
- PAD.BUTTONS_NONE
- PAD.BUTTONS_ONE
- PAD.BUTTONS_TWO
- PAD.BUTTONS_THREE
- PAD.BUTTONS_FOUR
- PAD.BUTTONS_FIVE
- PAD.BUTTONS_SIX
Parameters
parent: (Sprite) the parent of the TNT Virtual Pad
texturePack: (TextureBase) the texture pack of the TNT Virtual Pad
padSticks: (number) number of pad sticks
padButtons: (number) number of buttons
borderSpace: (number) border space value
layerIndex: (number) layer value optional
vBorderSpace: (number) vertical border space value optional
restrict: (number) restrict the TNT Virtual Pad to half the screen (default = TRUE) optional
- 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