31 #include "common/str.h" 32 #include "common/keyboard.h" 33 #include "common/events.h" 36 class SeekableReadStream;
46 kMouseButtonsNone = 0,
47 kMouseButtonsLeft = 1,
48 kMouseButtonsRight = 2,
49 kMouseButtonsBoth = 3,
55 kKeyBackspace = 0x0E08,
79 kShortKeyRight = 0x09,
81 kShortKeyEscape = 0x1B,
82 kShortKeyBackspace = 0x19,
83 kShortKeyDelete = 0x1A
93 ListNode() : pData(0), pNext(0), pPrev(0) {}
99 List() : pHead(0), pTail(0) {}
103 int16 getRandom(int16 max);
104 void beep(int16 freq);
106 void notifyPaused(uint32 duration);
108 void delay(uint16 msecs);
109 void longDelay(uint16 msecs);
112 void processInput(
bool scroll =
false);
116 bool checkKey(int16 &key);
119 uint32 getKeyState()
const;
121 void getMouseState(int16 *pX, int16 *pY, MouseButtons *pButtons);
122 void setMousePos(int16 x, int16 y);
124 void waitMouseDown();
125 void waitMouseRelease(
char drawMouse);
126 void forceMouseUp(
bool onlyWhenSynced =
false);
129 int16 getFrameRate();
130 void setFrameRate(int16 rate);
131 void notifyNewAnim();
132 void waitEndFrame(
bool handleInput =
true);
133 void setScrollOffset(int16 x = -1, int16 y = -1);
135 static void insertStr(
const char *str1,
char *str2, int16 pos);
136 static void cutFromStr(
char *str, int16 from, int16 cutlen);
137 static void cleanupStr(
char *str);
138 static void replaceChar(
char *str,
char c1,
char c2);
140 static void listInsertFront(
List *list,
void *data);
141 static void listInsertBack(
List *list,
void *data);
142 static void listDropFront(
List *list);
143 static void deleteList(
List *list);
152 static char toCP850Lower(
char cp850);
154 static char toCP850Upper(
char cp850);
159 MouseButtons _mouseButtons;
162 int16 _keyBufferHead;
163 int16 _keyBufferTail;
168 int16 _frameWaitTime;
169 uint32 _startFrameTime;
175 bool keyBufferEmpty();
179 int16 toCP850(uint16 latin1);
180 void checkJoystick();
Definition: double_serialization.h:36
Definition: algorithm.h:29
Definition: keyboard.h:294