Skip to content
ben-sangster edited this page Oct 7, 2010 · 1 revision

Input

Description

Functions

API

Found in "dmz/components/input"

API Functions

Bool channel (Handle channel, Bool State)

Handle channel.create (Handle h)

FunctionPtr channel.observe (self, [Handle channel], Function fnc (Handle Channel, Boolean State))

FunctionPtr axis.observe (self, , Function fnc (Handle channel, Object))

  • The function that is sent in by axis.observe will get as an argument an object with the following keys:
    • source
    • id
    • value
    • previous
    • delta

FunctionPtr button.observe (self, , Function fnc (Handle channel, Object))

  • The function that is sent in by button.observe will get as an argument an object with the following keys:
    • source
    • id
    • value
    • previous

Number key.toValue (String keyStr)

String key.toString (Number keyValue)

FunctionPtr key.observe (self, , Function fnc (Handle channel, Object))

  • The function that is sent in will get as an argument an object with the following keys:
    • source
    • key
    • state

FunctionPtr mouse.observe (self, , Function fnc (Handle channel, Object))

  • Function input object keys:
    • source

FunctionPtr data.observe (self, , Function fnc (Handle channel, Handle source, Data d))

Clone this wiki locally