Next: , Previous: , Up: High-Level Configuration   [Contents][Index]


5.1.4 Input Events

The module ‘(librekontrol input)’ contains many (many) definitions of input events. Input events consist of an event type and an event code. These are defined in the kernel. They are presented here without any further comment, although generally the name should be descriptive enough.

Syntax: make-input-event event-type event-code

Construct an input event defined by event-type and event-code. For now, at least, this is represented as a simple cons pair ‘(event-type . event-code)’, so the elements can be accessed using car and cdr, respectively.

Syntax: define-input-event symbol event-type event-code

Bind symbol to a specific input event defined by event-type and event-code.