diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-17 22:28:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-17 22:28:18 +0000 |
commit | 7af0f889a4296ad465f829ab6609b3e6efced997 (patch) | |
tree | ce51717de31bb72197dd99f28d0c9eb9954614f5 /src/client/input.cc | |
parent | f406891947a175f3309db0facd7882afe5471508 (diff) |
add input_grab variable
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/input.cc b/src/client/input.cc index d483f5d..f9acce0 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -32,6 +32,7 @@ core::Cvar *input_mousecontrol = 0; core::Cvar *input_keydelay = 0; core::Cvar *input_keyrepeat = 0; core::Cvar *input_mousedelay = 0; +core::Cvar *input_grab = 0; namespace input { @@ -274,6 +275,10 @@ void init() input_mousedelay = core::Cvar::get("input_mousedelay", 150.0f, core::Cvar::Archive); input_mousedelay->set_info("[int] mouse click time-out in milliseconds"); + + input_grab = core::Cvar::get("input_grab", 1.0f, core::Cvar::Archive); + input_grab->set_info("[bool] grab input"); + core::Func *func = 0; func = core::Func::add("ui_control", func_ui_control); |