201 |
|
|
202 |
enum event_kind |
enum event_kind |
203 |
{ |
{ |
204 |
no_event, /* nothing happened. This should never |
NO_EVENT, /* nothing happened. This should never |
205 |
actually appear in the event queue. */ |
actually appear in the event queue. */ |
206 |
|
|
207 |
ascii_keystroke, /* The ASCII code is in .code, perhaps |
ASCII_KEYSTROKE_EVENT, /* The ASCII code is in .code, perhaps |
208 |
with modifiers applied. |
with modifiers applied. |
209 |
.modifiers holds the state of the |
.modifiers holds the state of the |
210 |
modifier keys. |
modifier keys. |
212 |
which the key was typed. |
which the key was typed. |
213 |
.timestamp gives a timestamp (in |
.timestamp gives a timestamp (in |
214 |
milliseconds) for the keystroke. */ |
milliseconds) for the keystroke. */ |
215 |
multibyte_char_keystroke, /* The multibye char code is in .code, |
MULTIBYTE_CHAR_KEYSTROKE_EVENT, /* The multibyte char code is in .code, |
216 |
perhaps with modifiers applied. |
perhaps with modifiers applied. |
217 |
The others are the same as |
The others are the same as |
218 |
ascii_keystroke. This type of event |
ASCII_KEYSTROKE_EVENT. This type of event |
219 |
is generated only when we are using |
is generated only when we are using |
220 |
XIM on X window. */ |
XIM on X window. */ |
221 |
non_ascii_keystroke, /* .code is a number identifying the |
NON_ASCII_KEYSTROKE_EVENT, /* .code is a number identifying the |
222 |
function key. A code N represents |
function key. A code N represents |
223 |
a key whose name is |
a key whose name is |
224 |
function_key_names[N]; function_key_names |
function_key_names[N]; function_key_names |
230 |
which the key was typed. |
which the key was typed. |
231 |
.timestamp gives a timestamp (in |
.timestamp gives a timestamp (in |
232 |
milliseconds) for the keystroke. */ |
milliseconds) for the keystroke. */ |
233 |
timer_event, /* A timer fired. */ |
TIMER_EVENT, /* A timer fired. */ |
234 |
mouse_click, /* The button number is in .code; it must |
MOUSE_CLICK_EVENT, /* The button number is in .code; it must |
235 |
be >= 0 and < NUM_MOUSE_BUTTONS, defined |
be >= 0 and < NUM_MOUSE_BUTTONS, defined |
236 |
below. |
below. |
237 |
.modifiers holds the state of the |
.modifiers holds the state of the |
243 |
.timestamp gives a timestamp (in |
.timestamp gives a timestamp (in |
244 |
milliseconds) for the click. */ |
milliseconds) for the click. */ |
245 |
#ifdef WINDOWSNT |
#ifdef WINDOWSNT |
246 |
mouse_wheel, /* A mouse-wheel event is generated |
MOUSE_WHEEL_EVENT, /* A mouse-wheel event is generated |
247 |
on WINDOWSNT by a |
on WINDOWSNT by a |
248 |
wheel on a mouse (e.g., MS Intellimouse). |
wheel on a mouse (e.g., MS Intellimouse). |
249 |
The event contains a delta that corresponds |
The event contains a delta that corresponds |
259 |
the wheel event occurred in. |
the wheel event occurred in. |
260 |
.timestamp gives a timestamp (in |
.timestamp gives a timestamp (in |
261 |
milliseconds) for the wheel event. */ |
milliseconds) for the wheel event. */ |
262 |
language_change_event, /* A language_change event is generated |
LANGUAGE_CHANGE_EVENT, /* A LANGUAGE_CHANGE_EVENT is generated |
263 |
on WINDOWSNT when the keyboard layout |
on WINDOWSNT when the keyboard layout |
264 |
or input language is changed by the |
or input language is changed by the |
265 |
user. */ |
user. */ |
266 |
#endif |
#endif |
267 |
scroll_bar_click, /* .code gives the number of the mouse button |
SCROLL_BAR_CLICK_EVENT, /* .code gives the number of the mouse button |
268 |
that was clicked. |
that was clicked. |
269 |
.modifiers holds the state of the modifier |
.modifiers holds the state of the modifier |
270 |
keys. |
keys. |
278 |
.timestamp gives a timestamp (in |
.timestamp gives a timestamp (in |
279 |
milliseconds) for the click. */ |
milliseconds) for the click. */ |
280 |
#ifdef WINDOWSNT |
#ifdef WINDOWSNT |
281 |
w32_scroll_bar_click, /* as for scroll_bar_click, but only generated |
W32_SCROLL_BAR_CLICK_EVENT, /* as for SCROLL_BAR_CLICK, but only generated |
282 |
by MS-Windows scroll bar controls. */ |
by MS-Windows scroll bar controls. */ |
283 |
#endif |
#endif |
284 |
selection_request_event, /* Another X client wants a selection from us. |
SELECTION_REQUEST_EVENT, /* Another X client wants a selection from us. |
285 |
See `struct selection_event'. */ |
See `struct selection_event'. */ |
286 |
selection_clear_event, /* Another X client cleared our selection. */ |
SELECTION_CLEAR_EVENT, /* Another X client cleared our selection. */ |
287 |
buffer_switch_event, /* A process filter has switched buffers. */ |
BUFFER_SWITCH_EVENT, /* A process filter has switched buffers. */ |
288 |
delete_window_event, /* An X client said "delete this window". */ |
DELETE_WINDOW_EVENT, /* An X client said "delete this window". */ |
289 |
MENU_BAR_EVENT, /* An event generated by the menu bar. |
MENU_BAR_EVENT, /* An event generated by the menu bar. |
290 |
The frame_or_window field's cdr holds the |
The frame_or_window field's cdr holds the |
291 |
Lisp-level event value. |
Lisp-level event value. |
292 |
(Only the toolkit version uses these.) */ |
(Only the toolkit version uses these.) */ |
293 |
iconify_event, /* An X client iconified this window. */ |
ICONIFY_EVENT, /* An X client iconified this window. */ |
294 |
deiconify_event, /* An X client deiconified this window. */ |
DEICONIFY_EVENT, /* An X client deiconified this window. */ |
295 |
menu_bar_activate_event, /* A button press in the menu bar |
MENU_BAR_ACTIVATE_EVENT, /* A button press in the menu bar |
296 |
(toolkit version only). */ |
(toolkit version only). */ |
297 |
drag_n_drop, /* A drag-n-drop event is generated when |
DRAG_N_DROP_EVENT, /* A drag-n-drop event is generated when |
298 |
files selected outside of Emacs are dropped |
files selected outside of Emacs are dropped |
299 |
onto an Emacs window. |
onto an Emacs window. |
300 |
Currently used only on Windows NT. |
Currently used only on Windows NT. |
330 |
|
|
331 |
/* Queued from XTread_socket when session manager sends |
/* Queued from XTread_socket when session manager sends |
332 |
save yourself before shutdown. */ |
save yourself before shutdown. */ |
333 |
save_session_event |
SAVE_SESSION_EVENT |
334 |
}; |
}; |
335 |
|
|
336 |
/* If a struct input_event has a kind which is selection_request_event |
/* If a struct input_event has a kind which is SELECTION_REQUEST_EVENT |
337 |
or selection_clear_event, then its contents are really described |
or SELECTION_CLEAR_EVENT, then its contents are really described |
338 |
by `struct selection_event'; see xterm.h. */ |
by `struct selection_event'; see xterm.h. */ |
339 |
|
|
340 |
/* The keyboard input buffer is an array of these structures. Each one |
/* The keyboard input buffer is an array of these structures. Each one |
347 |
/* What kind of event was this? */ |
/* What kind of event was this? */ |
348 |
enum event_kind kind; |
enum event_kind kind; |
349 |
|
|
350 |
/* For an ascii_keystroke and multibyte_char_keystroke, this is the |
/* For an ASCII_KEYSTROKE_EVENT and MULTIBYTE_CHAR_KEYSTROKE_EVENT, |
351 |
character. |
this is the character. |
352 |
For a non_ascii_keystroke, this is the keysym code. |
For a NON_ASCII_KEYSTROKE_EVENT, this is the keysym code. |
353 |
For a mouse event, this is the button number. */ |
For a mouse event, this is the button number. */ |
354 |
/* In WindowsNT, for a mouse wheel event, this is the delta. */ |
/* In WindowsNT, for a mouse wheel event, this is the delta. */ |
355 |
int code; |
int code; |