4
//#include "mdc_common.h"
11
SLeftButtonMask= (1<<0),
12
SMiddleButtonMask= (1<<1),
13
SRightButtonMask= (1<<2),
20
SOptionMask= SAltMask,
21
SCommandMask= (1<<11),
23
SModifierMask= (SShiftMask|SControlMask|SAltMask|SOptionMask|SCommandMask),
82
bool operator==(const KeyInfo &other) const
84
if (keycode != 0 && keycode == other.keycode)
86
return string == other.string;
91
inline EventState operator& (EventState s1, EventState s2)
93
return (EventState)((int)s1&(int)s2);
96
inline EventState operator| (EventState s1, EventState s2)
98
return (EventState)((int)s1|(int)s2);
110
inline EventState operator - (EventState s, MouseButton b)
112
return (EventState)((int)s & ~(1<<(int)b));
115
inline EventState operator + (EventState s, MouseButton b)
117
return (EventState)((int)s | (1<<(int)b));