void VRGuiNav_on_new_binding_clicked(GtkButton* b, gpointer d) { VRNavPreset* preset = VRSceneManager::get()->getActiveScene()->getPreset(getComboboxText("combobox5")); VRDevCb* fkt = 0; //cb = new VRDevCb( boost::bind(&VRNavigator::sandBoxNavigation, this, _1) ); //TODO VRNavBinding binding(fkt, 0, 0, false); preset->addKeyBinding(binding); VRGuiNav_on_preset_changed(0, NULL);// update bindings in treeview }
void VRGuiNav::on_new_binding_clicked() { auto scene = VRSceneManager::getCurrent(); if (scene == 0) return; VRNavPreset* preset = scene->getNavigation(getComboboxText("combobox5")); VRDeviceCb fkt; //cb = VRFunction<VRDevice*>::create( boost::bind(&VRNavigator::sandBoxNavigation, this, _1) ); //TODO VRNavBinding binding(fkt, 0, 0, false); preset->addKeyBinding(binding); on_preset_changed();// update bindings in treeview }