Difference between revisions of "cock.setCallbacks"

(Created page with "Enables or disables specified callbacks. All callbacks are disabled by default. == Funciton == === Synopsis === <source lang="Lua">cock.setCallbacks ( self, pressed, released, pe...")
 
m (Arguments)
 
Line 15: Line 15:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|table|self|An object to use.}}
 
{{param|table|self|An object to use.}}
{{param|string|callback|Callback name.}}
+
{{param|string|callback|[[Common Organization of Controls Kit Callbacks|Callback]] name.}}
 
{{param|boolean|value|Desired state.}}
 
{{param|boolean|value|Desired state.}}
 +
 
==See also==
 
==See also==
 
*[[cock.setCapture]]
 
*[[cock.setCapture]]

Latest revision as of 14:49, 2 September 2013

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