예제 #1
0
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
}
예제 #2
0
파일: VRGuiNav.cpp 프로젝트: Pfeil/polyvr
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
}