CTNTVirtualPad.new
From GiderosMobile
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