Libraries.Game.InputSet Documentation

Inherits from: Libraries.Language.Object

Summary

Variable Summary Table

VariablesDescription
integer CONTROL
integer BEGIN
integer MOUSE_INPUT
integer MOUSE_MOVEMENT_INPUT
integer SHIFT
integer TOUCH_INPUT
integer FINISH
integer CONTINUE
integer ALT
integer KEYBOARD_INPUTKEYBOARD_INPUT: BEGIN: When the key is first pressed down. CONTINUE: Each frame that the key is held down. FINISH: When the key is released. MOUSE_INPUT: BEGIN: When the mouse button is first clicked. CONTINUE: Each frame that the button is held down. FINISH: When the button is released. MOUSE_WHEEL_INPUT: BEGIN: When the mouse wheel moves. (Wheel movement is non-continuous - each movement is registered, but there's typically no "smooth transition" as in begin/finish) CONTINUE: N/A FINISH: N/A MOUSE_MOVEMENT_INPUT: BEGIN: When the mouse first moves onto an Item. CONTINUE: Each mouse movement, whether on the same Item or not. FINISH: When the mouse moves off of an Item. TOUCH_INPUT: BEGIN: When a finger first presses down. CONTINUE: Each frame a finger is touching the screen. FINISH: When the finger is removed from the screen.
integer TOUCH_MOVEMENT_INPUT
integer META
integer MOUSE_WHEEL_INPUT
integer TEXT_INPUT

Actions Summary Table

ActionsDescription
AddModifier(integer modifier)
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
Copy()
Empty()
EmptyModifiers()
Equals(Libraries.Game.InputSet set)
Equals(Libraries.Language.Object o)
GetDisplayName()
GetHashCode()
GetInputTrigger()
GetInputType()
GetInputValue()
GetModifiers()
HasModifier(integer modifier)
RemoveModifier(integer modifier)
Set(Libraries.Game.InputSet set)
SetBitMask(integer value)This sets the raw bitmask.
SetEventCount(integer count)
SetInputTrigger(integer type)
SetInputType(integer type)
SetKeyboardInput(integer key)
SetMouseInput(integer mouseButton)
SetMouseMovementInput(integer mouseButton)
ToText()

Actions Documentation

AddModifier(integer modifier)

Parameters

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Example Code

Object o
        Object t
        integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Copy()

Return

Libraries.Game.InputSet

Empty()

EmptyModifiers()

Equals(Libraries.Game.InputSet set)

Parameters

Return

boolean

Equals(Libraries.Language.Object o)

Parameters

Return

boolean

GetDisplayName()

Return

text

GetHashCode()

Return

integer

GetInputTrigger()

Return

integer

GetInputType()

Return

integer

GetInputValue()

Return

integer

GetModifiers()

Return

Libraries.Containers.Array

HasModifier(integer modifier)

Parameters

Return

boolean

RemoveModifier(integer modifier)

Parameters

Set(Libraries.Game.InputSet set)

Parameters

SetBitMask(integer value)

This sets the raw bitmask. It intentionally has a nasty technical to warn the user that this action should not be used unless you really, really, know what you are doing.

Parameters

SetEventCount(integer count)

Parameters

SetInputTrigger(integer type)

Parameters

SetInputType(integer type)

Parameters

SetKeyboardInput(integer key)

Parameters

SetMouseInput(integer mouseButton)

Parameters

SetMouseMovementInput(integer mouseButton)

Parameters

ToText()

Return

text