NDOF navigation support for clip editor
[blender.git] / source / blender / editors / space_clip / space_clip.c
index 3428c47ff438ab45abe89847fd8d4c53733d924c..bf65429b9f421fdc770ae1cf22541729159f1c62 100644 (file)
@@ -438,6 +438,7 @@ static void clip_operatortypes(void)
        WM_operatortype_append(CLIP_OT_change_frame);
        WM_operatortype_append(CLIP_OT_rebuild_proxy);
        WM_operatortype_append(CLIP_OT_mode_set);
+       WM_operatortype_append(CLIP_OT_view_ndof);
 
        /* ** clip_toolbar.c ** */
        WM_operatortype_append(CLIP_OT_tools);
@@ -602,6 +603,9 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
 
        WM_keymap_add_item(keymap, "CLIP_OT_view_selected", PADPERIOD, KM_PRESS, 0, 0);
 
+       WM_keymap_add_item(keymap, "CLIP_OT_view_all", NDOF_BUTTON_FIT, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "CLIP_OT_view_ndof", NDOF_MOTION, 0, 0, 0);
+
        /* jump to special frame */
        kmi = WM_keymap_add_item(keymap, "CLIP_OT_frame_jump", LEFTARROWKEY, KM_PRESS, KM_CTRL | KM_SHIFT, 0);
        RNA_enum_set(kmi->ptr, "position", 0);