[PATCH] Scroll wheel zoom patch

General discussion about the development of the open source Blender

Moderators: jesterKing, stiv

beergeek
Posts: 14
Joined: Wed Oct 16, 2002 6:11 am

[PATCH] Scroll wheel zoom patch

Postby beergeek » Wed Oct 16, 2002 9:23 pm

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!

MrMunkily
Posts: 79
Joined: Mon Oct 14, 2002 5:24 am

Postby MrMunkily » Wed Oct 16, 2002 9:56 pm

oooooh!!!

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

beergeek
Posts: 14
Joined: Wed Oct 16, 2002 6:11 am

Postby beergeek » Wed Oct 16, 2002 10:04 pm

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

Debaser
Posts: 21
Joined: Wed Oct 16, 2002 12:47 am
Location: Sneek, Netherlands

Re: [PATCH] Scroll wheel zoom patch

Postby Debaser » Wed Oct 16, 2002 10:29 pm

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 :P

madprof
Posts: 17
Joined: Wed Oct 16, 2002 11:15 pm

Postby madprof » Wed Oct 16, 2002 11:24 pm

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 :-) !

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

PhaethonH
Posts: 10
Joined: Tue Oct 15, 2002 11:13 pm
Location: Los Angeles, California, USA
Contact:

mousewheel zooming

Postby PhaethonH » Thu Oct 17, 2002 12:08 am

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

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 :) Hyper+mousewheel mimicks keypad 4 and 6 (rotate left/right). And so on. Sawfish is great 8)

beergeek
Posts: 14
Joined: Wed Oct 16, 2002 6:11 am

Postby beergeek » Thu Oct 17, 2002 7:15 am

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.

beatabix
Posts: 73
Joined: Fri Oct 18, 2002 1:12 am

historical moment!

Postby beatabix » Fri Oct 18, 2002 1:21 am

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

kino
Posts: 94
Joined: Sun Oct 13, 2002 7:37 pm

Postby kino » Fri Oct 18, 2002 4:11 am

Hi beergeek

:shock: :shock: :shock: :shock: :shock:

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 !!!!

8) 8)

Ciao
go to play with my wheel :lol:

adrian
Posts: 60
Joined: Fri Oct 18, 2002 1:31 pm

hey beergeek

Postby adrian » Fri Oct 18, 2002 1:40 pm

I would be very grateful if you could write a patch for windows (wheelscroll).
All the best.


Return to “News & Chat”

Who is online

Users browsing this forum: No registered users and 3 guests