diff options
| author | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-09 07:37:03 +0000 |
|---|---|---|
| committer | relnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-09 07:37:03 +0000 |
| commit | 4b5414094216c689e42787951ae6e2513a940ab8 (patch) | |
| tree | 3ac895b1d1166f7c7eb75654eff7d6501cbfe777 /Source/GameInitDispose.cpp | |
| parent | bda355af41d1ae8c99ff3de89b46e20d54e5498a (diff) | |
| download | blackshades-4b5414094216c689e42787951ae6e2513a940ab8.tar.gz | |
grab mouse too
git-svn-id: svn://svn.icculus.org/blackshades/trunk@67 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/GameInitDispose.cpp')
| -rw-r--r-- | Source/GameInitDispose.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index dca2e8d..09d0f69 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -3817,6 +3817,12 @@ int Game::InitGL(GLvoid) SDL_WM_SetCaption("Black Shades", "Black Shades"); SDL_EnableUNICODE(1); /* toggle it to ON */ + +#ifdef FULLSCREEN + SDL_WM_GrabInput(SDL_GRAB_ON); + SDL_ShowCursor(0); +#endif + #endif |
