Class for communicating with a switch input device.
function SwitchInputDevice(master:Master, deviceId:Number)This constructor creates a new object for communicating with a switch input device.
master | contains a pointer to the master object, see Master. |
deviceId | is the unique device identifier which you can find on the board or using the Master.requestDeviceTable method of the Master. |
function requestNeedsBooleans(side:String, needed:Boolean)Use this method to tell the input device that you want to receive boolean events for a certain side.
side | contains a string representation of the side of the board, valid are "A" and "B". |
needed | set to 0 to disable the reception of booleans or to 1 to enable the reception. |
function requestNeedsRotary(side:String, group:Number, needed:Boolean)Tell the input device to that you want to receive rotary change events for a certain input group.
side | contains a string representation of the side of the board, valid are "A" and "B". |
needed | set to 0 to disable the reception of this input or to 1 to enable the reception. |
function requestNeedsCounter(side:String, gate:Number, needed:Boolean)Tell the input device to that you want to receive counter change events for a certain input group.
side | contains a string representation of the side of the board, valid are "A" and "B". |
gate | contains the input number, valid are 1 through 6. |
needed | set to 0 to disable the reception of this input or to 1 to enable the reception. |