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);
127 void forceMouseButtonsSync();
130 int16 getFrameRate();
131 void setFrameRate(int16 rate);
132 void notifyNewAnim();
133 void waitEndFrame(
bool handleInput =
true);
134 void setScrollOffset(int16 x = -1, int16 y = -1);
136 static void insertStr(
const char *str1,
char *str2, int16 pos);
137 static void cutFromStr(
char *str, int16 from, int16 cutlen);
138 static void cleanupStr(
char *str);
139 static void replaceChar(
char *str,
char c1,
char c2);
141 static void listInsertFront(
List *list,
void *data);
142 static void listInsertBack(
List *list,
void *data);
143 static void listDropFront(
List *list);
144 static void deleteList(
List *list);
153 static char toCP850Lower(
char cp850);
155 static char toCP850Upper(
char cp850);
160 MouseButtons _mouseButtons;
163 int16 _keyBufferHead;
164 int16 _keyBufferTail;
169 int16 _frameWaitTime;
170 uint32 _startFrameTime;
176 bool keyBufferEmpty();
180 int16 toCP850(uint16 latin1);
181 void checkJoystick();
Definition: double_serialization.h:36
Definition: algorithm.h:29
Definition: keyboard.h:294