|
@@ -204,7 +204,7 @@ void SDLSystem::glPrintf3d(float x, float y, float z, char *string)
|
204
|
204
|
|
205
|
205
|
void SDLSystem::setGrabMouse(bool on)
|
206
|
206
|
{
|
207
|
|
- on ? SDL_WM_GrabInput(SDL_GRAB_ON) : SDL_WM_GrabInput(SDL_GRAB_OFF);
|
|
207
|
+ SDL_WM_GrabInput(on ? SDL_GRAB_ON : SDL_GRAB_OFF);
|
208
|
208
|
}
|
209
|
209
|
|
210
|
210
|
|
|
@@ -491,6 +491,7 @@ void SDLSystem::runGame()
|
491
|
491
|
{
|
492
|
492
|
if (event.type == SDL_KEYDOWN)
|
493
|
493
|
{
|
|
494
|
+ printf("Toggling console: %d!\n", mConsoleMode);
|
494
|
495
|
mConsoleMode = !mConsoleMode;
|
495
|
496
|
// Tmp hack
|
496
|
497
|
handleConsoleKeyPressEvent(mConsoleKey, 0);
|
|
@@ -501,6 +502,7 @@ void SDLSystem::runGame()
|
501
|
502
|
switch (event.type)
|
502
|
503
|
{
|
503
|
504
|
case SDL_KEYDOWN:
|
|
505
|
+ printf("Console key press!\n");
|
504
|
506
|
handleConsoleKeyPressEvent(key, mod);
|
505
|
507
|
break;
|
506
|
508
|
default:
|
|
@@ -512,6 +514,7 @@ void SDLSystem::runGame()
|
512
|
514
|
//if (key < 255 && mKeyEvents[key] != 0)
|
513
|
515
|
key = mKeyEvents[key];
|
514
|
516
|
|
|
517
|
+ printf("Bound key press!\n");
|
515
|
518
|
switch (event.type)
|
516
|
519
|
{
|
517
|
520
|
case SDL_KEYDOWN:
|
|
@@ -523,6 +526,7 @@ void SDLSystem::runGame()
|
523
|
526
|
}
|
524
|
527
|
else // 'Classic' key event handlers
|
525
|
528
|
{
|
|
529
|
+ printf("Unbound key press!\n");
|
526
|
530
|
switch (event.type)
|
527
|
531
|
{
|
528
|
532
|
case SDL_KEYDOWN:
|