25 #include "common/list.h" 26 #include "common/rect.h" 32 kSciEventMousePress = 1,
33 kSciEventMouseRelease = 1 << 1,
34 kSciEventMouse = kSciEventMousePress | kSciEventMouseRelease,
35 kSciEventKeyDown = 1 << 2,
36 kSciEventKeyUp = 1 << 3,
37 kSciEventKey = kSciEventKeyDown | kSciEventKeyUp,
38 kSciEventDirection16 = 1 << 6,
39 kSciEventSaid = 1 << 7,
41 kSciEventDirection32 = 1 << 4,
42 kSciEventHotRectangle = 1 << 10,
44 kSciEventQuit = 1 << 11,
45 kSciEventPeek = 1 << 15,
47 kSciEventAny = ~kSciEventPeek
50 inline SciEventType operator|(
const SciEventType a,
const SciEventType b) {
51 return static_cast<SciEventType
>((int)a | (
int)b);
54 inline SciEventType &operator|=(SciEventType &a,
const SciEventType b) {
55 return a =
static_cast<SciEventType
>((int)a | (
int)b);
64 kSciKeyShiftTab = 15 << 8,
66 kSciKeyHome = 71 << 8,
68 kSciKeyPageUp = 73 << 8,
69 kSciKeyLeft = 75 << 8,
70 kSciKeyCenter = 76 << 8,
71 kSciKeyRight = 77 << 8,
73 kSciKeyDown = 80 << 8,
74 kSciKeyPageDown = 81 << 8,
75 kSciKeyInsert = 82 << 8,
76 kSciKeyDelete = 83 << 8,
89 kSciKeyShiftF1 = 84 << 8,
90 kSciKeyShiftF2 = 85 << 8,
91 kSciKeyShiftF3 = 86 << 8,
92 kSciKeyShiftF4 = 87 << 8,
93 kSciKeyShiftF5 = 88 << 8,
94 kSciKeyShiftF6 = 89 << 8,
95 kSciKeyShiftF7 = 90 << 8,
96 kSciKeyShiftF8 = 91 << 8,
97 kSciKeyShiftF9 = 92 << 8,
98 kSciKeyShiftF10 = 93 << 8
101 enum SciKeyModifiers {
103 kSciKeyModRShift = 1,
104 kSciKeyModLShift = 1 << 1,
105 kSciKeyModShift = kSciKeyModRShift | kSciKeyModLShift,
106 kSciKeyModCtrl = 1 << 2,
107 kSciKeyModAlt = 1 << 3,
108 kSciKeyModScrLock = 1 << 4,
109 kSciKeyModNumLock = 1 << 5,
110 kSciKeyModCapsLock = 1 << 6,
111 kSciKeyModInsert = 1 << 7,
112 kSciKeyModNonSticky = kSciKeyModRShift | kSciKeyModLShift | kSciKeyModCtrl | kSciKeyModAlt,
113 kSciKeyModAll = ~kSciKeyModNone
116 inline SciKeyModifiers &operator|=(SciKeyModifiers &a, SciKeyModifiers b) {
117 return a =
static_cast<SciKeyModifiers
>((int)a | (
int)b);
122 SciKeyModifiers modifiers;
147 int16 hotRectangleIndex;
157 SciEvent getSciEvent(SciEventType mask);
163 const bool _fontIsExtended;
167 void setHotRectanglesActive(
const bool active);
172 bool _hotRectanglesActive;
174 int16 _activeRectIndex;
uint16 character
Definition: event.h:128
Common::Point mousePos
Definition: event.h:134