]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix event bindings
authorMikko Rasa <tdb@tdb.fi>
Sat, 18 May 2013 21:35:33 +0000 (00:35 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 18 May 2013 21:35:33 +0000 (00:35 +0300)
demos/desertpillars.cpp
tools/viewer.cpp

index 0f148f7de28ebc4335eff4bef2bea967de51ab5d..373297e20caab6c437bdb809944f307fc090bf34 100644 (file)
@@ -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();
index db2b99e1869d22c6a5bb19b642c4697e5c494e66..1d533b5deae8fee3d44615066367c10012937fb2 100644 (file)
@@ -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);