input

From Teverse


Properties

screenSize [readonly]

Type: vector2

mousePosition [readonly]

Type: vector2

className [readonly]

Type: string

mouseFocusedGui [readonly]

Type: boolean

name [readonly]

Type: string

cursorTexture

Type: string

Inherited from baseClass:

name

Type: string
A none unique identifier

className [readonly]

Type: string
The name of the object's class

Methods

isKeyDown

nil input:isKeyDown()

isMouseButtonDown

nil input:isMouseButtonDown()

Inherited from baseClass:

getDescendants

table input:getDescendants()
Returns a table of all descended objects

isContainer

boolean input:isContainer()

isA

boolean input:isA(string className)
Returns true if this object is derived from the className given.

destroy

nil input:destroy()
Locks the object before removing it from the hierarchy. Children will also be destroyed.

getFullName

string input:getFullName()
Returns a string including ancestor names

constructor

nil input:constructor()

destroyAllChildren

nil input:destroyAllChildren()
Invokes the destroy method on each child of this instance.

hasChild

boolean input:hasChild(string name)
Returns true if this object has a child with the name given

isDescendantOf

boolean input:isDescendantOf(baseClass ancestor)
Returns true if this object is a descendant of the ancestor object given

describe

nil input:describe()

clone

variant input:clone()
Creates and returns a copy of this object

Events

mouseLeftPressed

eventListener input:mouseLeftPressed(function())

keyReleased

eventListener input:keyReleased(function())

keyPressed

eventListener input:keyPressed(function())

mouseMiddleReleased

eventListener input:mouseMiddleReleased(function())

mouseMiddlePressed

eventListener input:mouseMiddlePressed(function())

mouseScrolled

eventListener input:mouseScrolled(function())

mouseRightReleased

eventListener input:mouseRightReleased(function())

mouseMoved

eventListener input:mouseMoved(function())

mouseRightPressed

eventListener input:mouseRightPressed(function())

mouseLeftReleased

eventListener input:mouseLeftReleased(function())

Inherited from baseClass:

changed

eventListener input:changed(function(string propertyName, variant newValuevariant))
Fired when a property changes

childAdded

eventListener input:childAdded(function(baseClass child))
Fired when a child is added

childRemoved

eventListener input:childRemoved(function(baseClass child))
Fired when a child is removed

destroying

eventListener input:destroying(function())
Fired just before an object is destroyed.

Sub classes

Category derivedFrominput not found