Previous: Key names, Up: Input handling and screen management


2.1.2 Additional functions

Beyond the core functionality described above, SLAYER provides a set of convinient functions written in Guile Scheme. They're contained in the (extra slayer) module.

— Procedure: key name fun

Call fun every 30 milliseconds as long as the key named name is pressed.

— Procedure: keydn (modifier target) action

This version of keydn extends the core binding. It allows to bind actions not only to keys, but also to their simple combinations, like (ctrl z).

— Procedure: shift?

A shorthand for (modifier-pressed? 'shift)

— Procedure: alt?

A shorthand for (modifier-pressed? 'alt)

— Procedure: ctrl?

A shorthand for (modifier-pressed? 'ctrl)