diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-29 16:04:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-29 16:04:03 +0000 |
commit | 8774e65cc503318005f34c133cbaee21b18fc144 (patch) | |
tree | 907c120079597398abfda5d4791ce58573009e7c /src/client/input.cc | |
parent | 2c7d185fdb03d17475deb9af1edaa82ffa51d4b6 (diff) |
Parse command line options after engine initialization.
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/input.cc b/src/client/input.cc index 0412093..3741e15 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -279,6 +279,9 @@ void init() input_grab = core::Cvar::get("input_grab", 1.0f, core::Cvar::Archive); input_grab->set_info("[bool] grab input"); + if (!input_grab->value()) { + SDL_WM_GrabInput(SDL_GRAB_OFF); + } core::Func *func = 0; func = core::Func::add("ui_control", func_ui_control); |