From 0d2d350e8eb6f57be31f926897e39c6483eeee75 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Feb 2012 20:10:11 +0300 Subject: Add option to grab/ungrab input to game window. --- src/gui/setup_visual.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui') diff --git a/src/gui/setup_visual.cpp b/src/gui/setup_visual.cpp index 6df2dbf82..22894e267 100644 --- a/src/gui/setup_visual.cpp +++ b/src/gui/setup_visual.cpp @@ -55,10 +55,14 @@ Setup_Visual::Setup_Visual() new SetupItemCheckBox(_("Show pickup notifications as particle effects"), "", "showpickupparticle", this, "showpickupparticleEvent"); + new SetupItemCheckBox(_("Grab mouse and keyboard input"), + "", "grabinput", this, "grabinputEvent"); + setDimension(gcn::Rectangle(0, 0, 550, 350)); } void Setup_Visual::apply() { SetupTabScroll::apply(); + Client::applyGrabMode(); } -- cgit v1.2.3-70-g09d2