comparison src/events.h @ 5125:b5df3737028a ben-lisp-object

merge
author Ben Wing <ben@xemacs.org>
date Wed, 24 Feb 2010 01:58:04 -0600
parents d1247f3cc363 6ef8256a020a
children a9c41067dd88
comparison
equal deleted inserted replaced
5124:623d57b7fbe8 5125:b5df3737028a
908 extern Lisp_Object Qcancel_mode_internal; 908 extern Lisp_Object Qcancel_mode_internal;
909 extern Lisp_Object Vmodifier_keys_sticky_time; 909 extern Lisp_Object Vmodifier_keys_sticky_time;
910 910
911 /* The modifiers XEmacs knows about; these appear in key and button events. */ 911 /* The modifiers XEmacs knows about; these appear in key and button events. */
912 912
913 #define XEMACS_MOD_CONTROL (1<<0) 913 enum event_modifiers
914 #define XEMACS_MOD_META (1<<1) 914 {
915 #define XEMACS_MOD_SUPER (1<<2) 915 XEMACS_MOD_CONTROL = (1<<0),
916 #define XEMACS_MOD_HYPER (1<<3) 916 XEMACS_MOD_META = (1<<1),
917 #define XEMACS_MOD_ALT (1<<4) 917 XEMACS_MOD_SUPER = (1<<2),
918 #define XEMACS_MOD_SHIFT (1<<5) /* not used for dual-case characters */ 918 XEMACS_MOD_HYPER = (1<<3),
919 #define XEMACS_MOD_BUTTON1 (1<<6) 919 XEMACS_MOD_ALT = (1<<4),
920 #define XEMACS_MOD_BUTTON2 (1<<7) 920 XEMACS_MOD_SHIFT = (1<<5) /* not used for dual-case characters */,
921 #define XEMACS_MOD_BUTTON3 (1<<8) 921 #define FROB(num) \
922 #define XEMACS_MOD_BUTTON4 (1<<9) 922 XEMACS_MOD_BUTTON##num = (1<<(num+5)),
923 #define XEMACS_MOD_BUTTON5 (1<<10) 923 #include "keymap-buttons.h"
924 #define XEMACS_MOD_BUTTON6 (1<<11) 924 };
925 #define XEMACS_MOD_BUTTON7 (1<<12)
926 #define XEMACS_MOD_BUTTON8 (1<<13)
927 #define XEMACS_MOD_BUTTON9 (1<<14)
928 #define XEMACS_MOD_BUTTON10 (1<<15)
929 #define XEMACS_MOD_BUTTON11 (1<<16)
930 #define XEMACS_MOD_BUTTON12 (1<<17)
931 #define XEMACS_MOD_BUTTON13 (1<<18)
932 #define XEMACS_MOD_BUTTON14 (1<<19)
933 #define XEMACS_MOD_BUTTON15 (1<<20)
934 #define XEMACS_MOD_BUTTON16 (1<<21)
935 #define XEMACS_MOD_BUTTON17 (1<<22)
936 #define XEMACS_MOD_BUTTON18 (1<<23)
937 #define XEMACS_MOD_BUTTON19 (1<<24)
938 #define XEMACS_MOD_BUTTON20 (1<<25)
939 #define XEMACS_MOD_BUTTON21 (1<<26)
940 #define XEMACS_MOD_BUTTON22 (1<<27)
941 #define XEMACS_MOD_BUTTON23 (1<<28)
942 #define XEMACS_MOD_BUTTON24 (1<<29)
943 #define XEMACS_MOD_BUTTON25 (1<<30)
944 #define XEMACS_MOD_BUTTON26 (1<<31)
945 925
946 /* Note: under X Windows, XEMACS_MOD_ALT is generated by the Alt key 926 /* Note: under X Windows, XEMACS_MOD_ALT is generated by the Alt key
947 if there are both Alt and Meta keys. If there are no Meta keys, 927 if there are both Alt and Meta keys. If there are no Meta keys,
948 then Alt generates XEMACS_MOD_META instead. 928 then Alt generates XEMACS_MOD_META instead.
949 */ 929 */