Module interface:input - Input device interface

Input device interface. The CT.INPUT channel-type provides a generic method for interacting with input devices (such as a keyboard or serial-port).

Index

Declarations

input_if.inc:34Protocol P.INPUT.IN

PROTOCOL P.INPUT.IN

Commands sent to a generic input device.

input_if.inc:40Tag output.raw

output.raw; BOOL

Switches output between 'raw' and 'cooked' modes.

Parameters:

BOOL raw Use raw output. If TRUE use special tag (see P.INPUT.OUT) for data return). If FALSE use data.out channel in .

input_if.inc:43Tag ioctl

ioctl; INT; INT

IO control capability.

Parameters:

INT icmd, ival IO control command and value.

input_if.inc:47Protocol P.INPUT.OUT

PROTOCOL P.INPUT.OUT

Commands and data received from a generic input device.

input_if.inc:52Tag special

special; INT

Used to pass back input data in 'raw' mode (e.g. for ctrl/alt keys from a keyboard).

Parameters:

INT value Raw data (as an INT).

input_if.inc:55Tag result

result; INT

Generic result (e.g. from IO control).

Parameters:

INT val Result value.

input_if.inc:59Channel type CT.INPUT

RECURSIVE CHAN TYPE CT.INPUT

Generic input device channel type.

input_if.inc:62Variable in?

CHAN P.INPUT.IN

Commands sent to generic input device.

input_if.inc:64Variable out!

CHAN P.INPUT.OUT

Responses and raw data received from generic input device.

input_if.inc:66Variable data.out!

CHAN BYTE

Cooked data received from input device.

input_if.inc:69Variable return?

CHAN CT.INPUT!

Used to close an unshared input device (return client-end of the channel type).

input_if.inc:71Variable replace?

CHAN CT.INPUT?

Used internally for 'tapping' the data received from an input device.