Skip to main content

Device object

Device object represents a device such as USB gaming device or custom input/output device.

Constructors

Constructor
mapper.device()

Properties

NameDescription
Device.eventsA table holding event IDs for each input unit
Device.upstream_idsA table holding unit IDs for each output unit

Methods

NameDescription
Device:get_events()Return a table holding event IDs for each input unit
Device:get_upstream_ids()Return a table holding unit IDs for each output unit
Device:close()Close the device
Device:send()Send a value to output unit
Device:sender()Create a native-action to send a value to output unit

See Also