diff options
| author | Jim Blandy | 1992-09-28 06:53:29 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-09-28 06:53:29 +0000 |
| commit | 21cec0712a96d4bf9d3f37a35506e450325c8237 (patch) | |
| tree | 13391494e6efae0db28c866f5efcb1468d685cfa /src | |
| parent | 9ace597fcf31409f04cbf01c5e299c2c4c8a3ff1 (diff) | |
| download | emacs-21cec0712a96d4bf9d3f37a35506e450325c8237.tar.gz emacs-21cec0712a96d4bf9d3f37a35506e450325c8237.zip | |
* termhooks.h (alt_modifier, hyper_modifier, super_modifier,
down_modifier, drag_modifier): New modifiers, to support the new
input system. Re-arranged modifiers so that their bits are in
canonical order; this makes reorder_modifiers slightly simpler.
Diffstat (limited to 'src')
| -rw-r--r-- | src/termhooks.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index 83df0203f01..10d303100c4 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -153,12 +153,21 @@ struct input_event { | |||
| 153 | unsigned long timestamp; | 153 | unsigned long timestamp; |
| 154 | }; | 154 | }; |
| 155 | 155 | ||
| 156 | /* Bits in the modifiers member of the input_event structure. */ | 156 | /* Bits in the modifiers member of the input_event structure. |
| 157 | Note that reorder_modifiers assumes that the bits are in canonical | ||
| 158 | order. */ | ||
| 157 | enum { | 159 | enum { |
| 158 | shift_modifier = 1, | 160 | up_modifier = 1, /* This only applies to mouse buttons. */ |
| 159 | ctrl_modifier = 2, | 161 | alt_modifier = 2, /* Under X, the XK_Alt_[LR] keysyms. */ |
| 160 | meta_modifier = 4, | 162 | ctrl_modifier = 4, |
| 161 | up_modifier = 8, /* This only applies to mouse buttons. */ | 163 | hyper_modifier= 8, /* Under X, the XK_Hyper_[LR] keysyms. */ |
| 164 | meta_modifier = 16, /* Under X, the XK_Meta_[LR] keysyms. */ | ||
| 165 | shift_modifier= 32, | ||
| 166 | super_modifier= 64, /* Under X, the XK_Super_[LR] keysyms. */ | ||
| 167 | down_modifier = 128, /* The window-system independent code finds | ||
| 168 | it handy to have this modifier, but | ||
| 169 | it is ignored in the event queue. */ | ||
| 170 | drag_modifier = 256, /* Same as down_modifier. */ | ||
| 162 | last_modifier /* This should always be one more than the | 171 | last_modifier /* This should always be one more than the |
| 163 | highest modifier bit defined. */ | 172 | highest modifier bit defined. */ |
| 164 | }; | 173 | }; |