Next: , Previous: , Up: Events   [Contents][Index]


25.5.5 Accessing the Other Contents of Events

The following functions allow access to the contents of events other than the position info described in the previous section.

Function: event-timestamp event

This function returns the timestamp of the given event object.

Function: event-device event

This function returns the device that the given event occurred on.

Function: event-key event

This function returns the Keysym of the given key-press event. This will be the ASCII code of a printing character, or a symbol.

Function: event-button event

This function returns the button-number of the given button-press or button-release event.

Function: event-modifiers event

This function returns a list of symbols, the names of the modifier keys which were down when the given mouse or keyboard event was produced.

Function: event-modifier-bits event

This function returns a number representing the modifier keys which were down when the given mouse or keyboard event was produced.

Function: event-function event

This function returns the callback function of the given timeout, misc-user, or eval event.

Function: event-object event

This function returns the callback function argument of the given timeout, misc-user, or eval event.

Function: event-process event

This function returns the process of the given process event.