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

DEVICE_EVENT.VALUE_CHANGED
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:

do_change (msg)
Value was changed

Parameters:

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:

Tables

value
(table) current value

Fields:

  • x
  • y

Fields

self._cached_value
(table) copy of the most recent value
generated by LDoc 1.4.2