Previous: , Up: Low-Level Programming   [Contents][Index]


5.2.5 Hooks

Function: add-event-hook! device event proc
Function: remove-event-hook! device event proc

Add/remove proc to/from the list of procedures to be called when event is generated by device.

Function: reset-event-hook! device event

Remove all procedures associated with event on device.

Function: add-idle-hook! device proc
Function: remove-idle-hook! device proc

Add/remove proc to/from the list of procedures to be called on device’s idle thread at periodic intervals.

Function: reset-idle-hook! device

Remove all idle procedures for device.

Function: set-idle-wait! device value

Set the number of seconds to wait before triggering device’s idle procedures to value.

Function: add-exit-hook! device proc
Function: remove-exit-hook! device proc

Add/remove proc to/from the list of procedures to be called for device when Librekontrol exits

Function: reset-exit-hook! device

Remove all exit procedures for device.