Previous Thread  Next Thread

chat icon [PATCH] Scroll wheel zoom patch

beergeek

Posted: Wed Oct 16, 2002 8:23 pm
Joined: 16 Oct 2002
Posts: 14
I just started playing around with blender today. I have made a little patch to support zooming with the scroll wheel. It only supports X11 (but Mac and Windows support would probably be easy. if there is interest I will do it). To apply the patch go to the base of your source directory and type patch -p1 < scroll_zoom.patch

Here is the patch file

Comments are appreciated.

Hopefully soon we can get a more formal way to submit patches.

enjoy!
Reply with quote


MrMunkily

Posted: Wed Oct 16, 2002 8:56 pm
Joined: 14 Oct 2002
Posts: 79
oooooh!!!

wait! I though the thing still dosen't compile?
Reply with quote


beergeek

Posted: Wed Oct 16, 2002 9:04 pm
Joined: 16 Oct 2002
Posts: 14
MrMunkily wrote:

wait! I though the thing still dosen't compile?

I have been using this guy's version...
http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html
He wrote some autoconf scripts that make it a lot whole lot easier to compile (./configure && make). Hopefully these will make it in to the main blender CVS Smile
Reply with quote


Debaser

Posted: Wed Oct 16, 2002 9:29 pm
Joined: 15 Oct 2002
Posts: 21
beergeek wrote:
I just started playing around with blender today. I have made a little patch to support zooming with the scroll wheel. It only supports X11 (but Mac and Windows support would probably be easy. if there is interest I will do it). To apply the patch go to the base of your source directory and type patch -p1 < scroll_zoom.patch


Great Idea, why didn't I come up with that Razz
Reply with quote


madprof

Posted: Wed Oct 16, 2002 10:24 pm
Joined: 16 Oct 2002
Posts: 17
great!!

this is very cool. along with all the other nice fixes and such in the new version, I am happy. (not to mention being able to compile it! So thanks Smile !

Works flawlessly on my machine (mandrake 8.2, nvidia drivers) with a microsoft (only brand on the island. i wouldn't pick them by choice.) trackball.

Today is my birthday, so thanks to everyone for makeing it a good one ! (open-source blender that actually compiles is a brill prezzie! )


MadProf
Reply with quote


PhaethonH

Posted: Wed Oct 16, 2002 11:08 pm
Joined: 15 Oct 2002
Posts: 10
I'm still using my window manager setup from pre-opened Blender. My window manager (sawfish) checks if the active window is "Blender", then rearranges key bindings so that mousehwheel does special actions. Basically it binds the mousehwheel action to a synthesize-event function. In effect, it remaps the mousewheel, but really, sawfish just cuts off any mousewheel events to Blender and resends (fakes) different ones. That's why I've stuck it out with sawfish for over two (three?) years. The extensibility is great fun Smile

As an example of my sawfish Blender setup, mousehwheel alone did the same thing as keypad 8 and 2, that is rotate view up/down. In combination with Control, though (Control+wheelmouse), it actually zoomed (synthesized key events KP Plus/Minus). Alt+mousewheel flips through animation frames by 1 (synthesizes Alt+Left/Right Arrow keys) -- this is really fun, as I can just hold down Alt and spin the wheel to watch an animation Smile Hyper+mousewheel mimicks keypad 4 and 6 (rotate left/right). And so on. Sawfish is great Cool
Reply with quote


beergeek

Posted: Thu Oct 17, 2002 6:15 am
Joined: 16 Oct 2002
Posts: 14
I have put a new version of the patch in the same place as above. This is to go with the new version of the new version of the autoconfiscation build noted here

(one of the files I had modified has moved in the new version).

enjoy.
Reply with quote


beatabix

Posted: Fri Oct 18, 2002 12:21 am
Joined: 18 Oct 2002
Posts: 72
hey beergeek,
you do realise you just made history, don't you?

you just released the first patch for blender after the source release.
well done, pour yourself a beer or something

BEAT
Reply with quote


kino

Posted: Fri Oct 18, 2002 3:11 am
Joined: 13 Oct 2002
Posts: 94
Hi beergeek

Shocked Shocked Shocked Shocked Shocked

IT WORK!!!!

GREAT i'm really amazing, no word to explaine
really shocked, no problem to compile

Suse 7.3 Xfree 4.2 Gnome 2 Metacity
Log cord MM optical

no problem in other windows

WOW the first patch, the best !!!!

Cool Cool

Ciao
go to play with my wheel Laughing
Reply with quote


adrian

Posted: Fri Oct 18, 2002 12:40 pm
Joined: 18 Oct 2002
Posts: 60
I would be very grateful if you could write a patch for windows (wheelscroll).
All the best.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group