CTNTVirtualPad.new

From GiderosMobile
Revision as of 08:33, 3 December 2020 by MoKaLux (talk | contribs) (slowly :-))

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