Module Duplex.UIPad
UIPad is designed to take control of a X/Y Pad
Functions
__init (app, map) | Initialize the UIPad class |
do_change (msg) | Value was changed |
set_value (val_x, val_y, skip_event) | Set the UIPads values |
draw () | Update the appearance - inherited from UIComponent |
add_listeners () |
Add event listener
|
remove_listeners () | Remove previously attached event listeners |
Tables
value | (table) current value |
Fields
self._cached_value | (table) copy of the most recent value |
Functions
- __init (app, map)
-
Initialize the UIPad class
Parameters:
- app (Duplex.Application)
- map [opt] (table) mapping properties
- do_change (msg)
-
Value was changed
Parameters:
- msg (Duplex.Message)
Returns:
-
self or nil
- set_value (val_x, val_y, skip_event)
-
Set the UIPads values
Parameters:
- val_x (number)
- val_y (number)
- skip_event (bool) skip event handler
- draw ()
-
Update the appearance - inherited from UIComponent
See also:
- add_listeners ()
-
Add event listener
DEVICE_EVENT.VALUE_CHANGED
See also:
- remove_listeners ()
-
Remove previously attached event listeners
See also: