Changed UBYTE to SDLKey to prevent overflows, from tamlin
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@356 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -27,13 +27,13 @@ Uint8 KeyboardDown[512];
|
|||||||
int kbdhead, kbdtail;
|
int kbdhead, kbdtail;
|
||||||
Uint16 kbdbuf[KBDBUFSIZE];
|
Uint16 kbdbuf[KBDBUFSIZE];
|
||||||
|
|
||||||
UBYTE ControlA;
|
SDLKey ControlA;
|
||||||
UBYTE ControlB;
|
SDLKey ControlB;
|
||||||
UBYTE ControlC;
|
SDLKey ControlC;
|
||||||
UBYTE ControlX;
|
SDLKey ControlX;
|
||||||
UBYTE ControlStart;
|
SDLKey ControlStart;
|
||||||
UBYTE ControlLeftShift;
|
SDLKey ControlLeftShift;
|
||||||
UBYTE ControlRightShift;
|
SDLKey ControlRightShift;
|
||||||
|
|
||||||
|
|
||||||
static UNICODE PauseKey;
|
static UNICODE PauseKey;
|
||||||
|
|||||||
@@ -21,13 +21,13 @@
|
|||||||
|
|
||||||
extern Uint8 KeyboardDown[512];
|
extern Uint8 KeyboardDown[512];
|
||||||
|
|
||||||
extern UBYTE ControlA;
|
extern SDLKey ControlA;
|
||||||
extern UBYTE ControlB;
|
extern SDLKey ControlB;
|
||||||
extern UBYTE ControlC;
|
extern SDLKey ControlC;
|
||||||
extern UBYTE ControlX;
|
extern SDLKey ControlX;
|
||||||
extern UBYTE ControlStart;
|
extern SDLKey ControlStart;
|
||||||
extern UBYTE ControlLeftShift;
|
extern SDLKey ControlLeftShift;
|
||||||
extern UBYTE ControlRightShift;
|
extern SDLKey ControlRightShift;
|
||||||
|
|
||||||
Uint16 GetUNICODEKey ();
|
Uint16 GetUNICODEKey ();
|
||||||
void FlushInput ();
|
void FlushInput ();
|
||||||
|
|||||||
Reference in New Issue
Block a user