|
@@ -101,11 +101,6 @@ void SDLSystem::initVideo(unsigned int width, unsigned int height, bool fullscre
|
101
|
101
|
width, height, flags);
|
102
|
102
|
mGLContext = SDL_GL_CreateContext(mWindow);
|
103
|
103
|
|
104
|
|
-#ifdef UNICODE_SUPPORT
|
105
|
|
-
|
106
|
|
- SDL_EnableUNICODE(1);
|
107
|
|
-#endif
|
108
|
|
-
|
109
|
104
|
|
110
|
105
|
initGL();
|
111
|
106
|
|
|
@@ -303,16 +298,6 @@ void SDLSystem::runGame() {
|
303
|
298
|
}
|
304
|
299
|
#endif
|
305
|
300
|
|
306
|
|
-#ifdef UNICODE_SUPPORT
|
307
|
|
-
|
308
|
|
- if (!specialKey && key != 0) {
|
309
|
|
- if ((event.key.keysym.unicode & 0xFF80) == 0) {
|
310
|
|
- key = (unsigned int)(event.key.keysym.unicode & 0x7F);
|
311
|
|
- } else {
|
312
|
|
- key = 0;
|
313
|
|
- }
|
314
|
|
- }
|
315
|
|
-#else
|
316
|
301
|
|
317
|
302
|
* consoles using this expect text characters, add unicode
|
318
|
303
|
* support later when they're able to handle it
|
|
@@ -320,7 +305,6 @@ void SDLSystem::runGame() {
|
320
|
305
|
if (key > 255 && key < 1000) {
|
321
|
306
|
key = 0;
|
322
|
307
|
}
|
323
|
|
-#endif
|
324
|
308
|
|
325
|
309
|
if (key == mConsoleKey) {
|
326
|
310
|
if (event.type == SDL_KEYDOWN) {
|