diff options
author | Stijn Buys <ingar@osirion.org> | 2008-04-06 15:36:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-04-06 15:36:51 +0000 |
commit | c5e90960fc333c2b1d2b3e961da439928b2ac872 (patch) | |
tree | 6b6a4fbda96458db97ec880e346e347ee5c7a2c8 /src/client/console.cc | |
parent | f36e9bd8190c377836463bdeaf553671d34e8e98 (diff) |
mouse control
Diffstat (limited to 'src/client/console.cc')
-rw-r--r-- | src/client/console.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/console.cc b/src/client/console.cc index ca84384..04f896f 100644 --- a/src/client/console.cc +++ b/src/client/console.cc @@ -216,8 +216,10 @@ void toggle() (*history_pos).clear(); SDL_WM_GrabInput(SDL_GRAB_OFF); + SDL_ShowCursor(SDL_ENABLE); } else { SDL_WM_GrabInput(SDL_GRAB_ON); + SDL_ShowCursor(SDL_DISABLE); } setkeyboardmode(console::visible()); |