cock.setCallbacks

Enables or disables specified callbacks. All callbacks are disabled by default.

Funciton

Synopsis

cock.setCallbacks ( self, pressed, released, peaked, zeroed, changed )

Arguments

table self
An object to use.
boolean pressed
Optional. Corresponds to controlpressed callback. Will use old value if not provided.
boolean released
Optional. Corresponds to controlreleased callback. Will use old value if not provided.
boolean peaked
Optional. Corresponds to controlpeaked callback. Will use old value if not provided.
boolean zeroed
Optional. Corresponds to controlzeroed callback. Will use old value if not provided.
boolean changed
Optional. Corresponds to controlchanged callback. Will use old value if not provided.

Function

Synopsis

cock.setCallbacks ( self, callback, value )

Arguments

table self
An object to use.
string callback
Callback name.
boolean value
Desired state.

See also


Personal tools