mirror of
https://github.com/glest/glest-source.git
synced 2025-08-14 04:13:58 +02:00
allow each language to specify special keys allowed for that language (bugfix for polish)
This commit is contained in:
@@ -121,6 +121,7 @@ private:
|
||||
static void setKeystate(SDL_keysym state) { keystate = state; }
|
||||
|
||||
//static bool masterserverMode;
|
||||
static map<wchar_t,bool> mapAllowedKeys;
|
||||
|
||||
protected:
|
||||
int w, h;
|
||||
@@ -144,6 +145,10 @@ public:
|
||||
Window();
|
||||
virtual ~Window();
|
||||
|
||||
static void addAllowedKeys(string keyList);
|
||||
static void clearAllowedKeys();
|
||||
static bool isAllowedKey(wchar_t key);
|
||||
|
||||
virtual bool ChangeVideoMode(bool preserveContext,int resWidth, int resHeight,
|
||||
bool fullscreenWindow, int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
@@ -214,6 +219,8 @@ private:
|
||||
//static char getKey(SDL_keysym keysym, bool skipSpecialKeys=false);
|
||||
//static char getNormalKey(SDL_keysym keysym,bool skipSpecialKeys=false);
|
||||
static void toggleFullscreen();
|
||||
|
||||
static wchar_t convertStringtoSDLKey(const string &value);
|
||||
};
|
||||
|
||||
bool isKeyPressed(SDLKey compareKey, SDL_KeyboardEvent input, vector<int> modifiersToCheck);
|
||||
|
Reference in New Issue
Block a user