New: use ALT+ScrollWheel to step through frames. Like for Arrow keys, it
authorTon Roosendaal <ton@blender.org>
Fri, 28 Oct 2005 14:19:22 +0000 (14:19 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 28 Oct 2005 14:19:22 +0000 (14:19 +0000)
does not cycle (not jump back to start frame on the end).

Mac users can also use Apple+ScrollWheel btw!

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) {