New: use ALT+ScrollWheel to step through frames. Like for Arrow keys, it
[blender.git] / source / blender / src / toets.c
index 4d6e1c953f5d6aa83878f6f018c32f5d17468c9f..ecee8a9a8c7a286f4c3c4b9aa8abdcd952839e99 100644 (file)
@@ -683,6 +683,23 @@ int blenderqread(unsigned short event, short val)
                return 0;
                break;
        
+       case WHEELUPMOUSE:
+               if(G.qual==LR_ALTKEY || G.qual==LR_COMMANDKEY) {
+                       if(CFRA>1) {
+                               CFRA--;
+                               update_for_newframe();
+                       }
+                       return 0;
+               }
+               break;
+       case WHEELDOWNMOUSE:
+               if(G.qual==LR_ALTKEY || G.qual==LR_COMMANDKEY) {
+                       CFRA++;
+                       update_for_newframe();
+                       return 0;
+               }
+               break;
+               
        case LEFTARROWKEY:
        case DOWNARROWKEY:
                if(textediting==0 && textspace==0) {