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();
}
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);