Next: Exposure Events, Previous: Input Focus Events, Up: Event Types [Contents][Index]
The keyboard and pointer state events are :keymap-notify and :mapping-notify.
Selected by: :keymap-state.
The :keymap-notify event returns the current state of the keyboard. :keymap-notify is generated immediately after every :enter-notify and :focus-in.
Type window.
The window receiving an :enter-notify or :focus-in event.
Type (bit-vector 256).
A bit-vector containing the logical state of the keyboard. Each bit set to 1 indicates that the corresponding key is currently pressed. The vector is represented as 32 bytes. For n from 0 to 7, byte n (from 0) contains the bits for keys 8n to 8n+7, with the least significant bit in the byte representing key 8n.
The X server reports :mapping-notify events to all clients. There is no mechanism to express disinterest in this event. The X server generates this event type whenever a client application calls one of the following:
Type (member :modifier :keyboard :pointer
).
Indicates the kind of change that occurred–:modifier for a successful set-modifier-mapping, :keyboard for a successful change-keyboard-mapping, and :pointer for a successful set-pointer-mapping.
Type card8.
If request is :keyboard, then start and count indicate the range of altered keycodes.
Type card8.
If request is :keyboard, then start and count indicate the range of altered keycodes.
Next: Exposure Events, Previous: Input Focus Events, Up: Event Types [Contents][Index]