Next: Event Modifiers, Previous: Events, Up: Events
Each input event is represented by a cons cell containing two integers, and these integers encode the event. The encoding is opaque; the only way to access an event meaningfully is via the functions provided.
Each event has a string representation, called its “name”. Names consist of zero or more modifiers, followed by a key or mouse action indicator. Modifiers are separated from succeeding elements by hyphens `-'. For example, hitting <x> while holding down the <Control> and <Meta> keys would generate an event named <Control-Meta-x>. This notation is designed to closely match Emacs Lisp's notation.
Functions are available to convert between the name of an event and the actual event itself, and vice versa.