diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-28 18:19:22 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-28 18:19:22 +0400 |
commit | f57481861c230e2710cf0b5349b19f1a4b70ad18 (patch) | |
tree | d816c23b035e6da7502238136191d8ba6fdd27a7 /source/blender/src/toets.c | |
parent | 926d5ebdab6ab3f26482360444827b051ec16719 (diff) |
New: use ALT+ScrollWheel to step through frames. Like for Arrow keys, it
does not cycle (not jump back to start frame on the end).
Mac users can also use Apple+ScrollWheel btw!
Diffstat (limited to 'source/blender/src/toets.c')
-rw-r--r-- | source/blender/src/toets.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index 4d6e1c953f5..ecee8a9a8c7 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -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) { |