diff options
author | Jim Blandy <jimb@redhat.com> | 1992-09-28 06:53:29 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-09-28 06:53:29 +0000 |
commit | d54bb8a72dba629dc5b450dcc0fa93bff0725883 (patch) | |
tree | 0e5dfe463d3c528188cb2fb5bf76f352cacedf63 /src/termhooks.h | |
parent | 260c722a48ad21dc427f4910d76f8c124f729524 (diff) | |
download | emacs-d54bb8a72dba629dc5b450dcc0fa93bff0725883.tar.gz |
* 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/termhooks.h')
-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 { unsigned long timestamp; }; -/* Bits in the modifiers member of the input_event structure. */ +/* Bits in the modifiers member of the input_event structure. + Note that reorder_modifiers assumes that the bits are in canonical + order. */ enum { - shift_modifier = 1, - ctrl_modifier = 2, - meta_modifier = 4, - up_modifier = 8, /* This only applies to mouse buttons. */ + up_modifier = 1, /* This only applies to mouse buttons. */ + alt_modifier = 2, /* Under X, the XK_Alt_[LR] keysyms. */ + ctrl_modifier = 4, + hyper_modifier= 8, /* Under X, the XK_Hyper_[LR] keysyms. */ + meta_modifier = 16, /* Under X, the XK_Meta_[LR] keysyms. */ + shift_modifier= 32, + super_modifier= 64, /* Under X, the XK_Super_[LR] keysyms. */ + down_modifier = 128, /* The window-system independent code finds + it handy to have this modifier, but + it is ignored in the event queue. */ + drag_modifier = 256, /* Same as down_modifier. */ last_modifier /* This should always be one more than the highest modifier bit defined. */ }; |