From: Mikko Rasa Date: Sat, 18 May 2013 21:35:33 +0000 (+0300) Subject: Fix event bindings X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=55b23f78985f9404712028919eba6678ec4272be;p=libs%2Fgl.git Fix event bindings --- diff --git a/demos/desertpillars.cpp b/demos/desertpillars.cpp index 0f148f7d..373297e2 100644 --- a/demos/desertpillars.cpp +++ b/demos/desertpillars.cpp @@ -304,7 +304,7 @@ DesertPillars::DesertPillars(int argc, char **argv): window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &DesertPillars::exit), 0)); if(options.window_opts.fullscreen) window.show_cursor(false); - keyboard.signal_button_press.connect(sigc::mem_fun(this, &DesertPillars::key_press)); + keyboard.signal_button_press.connect(sigc::bind_return(sigc::mem_fun(this, &DesertPillars::key_press), false)); create_pipeline(); create_skybox(); diff --git a/tools/viewer.cpp b/tools/viewer.cpp index db2b99e1..1d533b5d 100644 --- a/tools/viewer.cpp +++ b/tools/viewer.cpp @@ -115,9 +115,9 @@ Viewer::Viewer(int argc, char **argv): } window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &Viewer::exit), 0)); - mouse.signal_button_press.connect(sigc::mem_fun(this, &Viewer::button_press)); - mouse.signal_button_release.connect(sigc::mem_fun(this, &Viewer::button_release)); - mouse.signal_axis_motion.connect(sigc::mem_fun(this, &Viewer::axis_motion)); + mouse.signal_button_press.connect(sigc::bind_return(sigc::mem_fun(this, &Viewer::button_press), false)); + mouse.signal_button_release.connect(sigc::bind_return(sigc::mem_fun(this, &Viewer::button_release), false)); + mouse.signal_axis_motion.connect(sigc::bind_return(sigc::mem_fun(this, &Viewer::axis_motion), false)); light.set_position(GL::Vector4(0, 0, 1, 0)); lighting.attach(0, light);