[ANN] OSX Mouse scroll wheel external

Feb 20, 2008 at 8:29am

[ANN] OSX Mouse scroll wheel external

Hi,

I just made an external to get consistent mouse wheel events on osx.

Available here:

http://www.olilarkin.co.uk/index.php?p=max

oli

#35897
Feb 20, 2008 at 9:58am

Cool stuff! haven’t thought of a use for this yet, but maybe i’ll find one later.

Notes:

- I’m using a mighty mouse, which has a 2D mousewheel. Just looking through your code, is this supported by the GetEventParameter function (there’s 2 zero’s there)? Maybe a second outlet?

- Wouldn’t it make more sense to only bind one window to your object at the same time? That way, you could use multiple instances of the ol.mousewheel object, dispose of unwanted event handlers etc. Seems to me like a more flexible solution.

#122957
Feb 20, 2008 at 10:45am

I’m pretty sure 2D mousewheel can be supported. I will look into it for a future version.

>Wouldn’t it make more sense to only bind one window to your object at the same time?

I do only bind one window AFAIK. I haven’t tested multiple instances yet. Will check it out later.

cheers,

oli

#122958
Feb 20, 2008 at 2:56pm

For me, when i bind to a window, it always stays bound, even if i also bind another window. Seems like unbinding something doesn’t always work…

After some trying out, everything works fine as long as you only bind one window at a time. When you bind two windows, it becomes impossible to unbind one of them, or sometimes even both. Do you get the same thing?

Keep up the good work…

#P window setfont “Sans Serif” 9.;
#P window linecount 4;
#P comment 541 263 156 196617 when unbinding , either one or both of the windows stays bound (and not always the one which i didn’t unbind).;
#P button 335 234 15 0;
#P window linecount 1;
#P newex 335 258 49 196617 t 0 front;
#P button 335 284 15 0;
#P newex 335 302 49 196617 t 0 front;
#P button 335 159 15 0;
#P newex 335 177 49 196617 t 1 front;
#P newex 408 345 76 196617 jit.window goo;
#P button 335 115 15 0;
#P newex 335 133 49 196617 t 1 front;
#P newex 408 301 75 196617 jit.window foo;
#P toggle 233 385 82 0;
#P newex 233 363 27 196617 > 0;
#P newex 233 342 75 196617 ol.mousewheel;
#P window linecount 3;
#P comment 543 166 100 196617 if i click these two , both windows react to the mousewheel;
#P connect 8 1 7 0;
#P connect 10 1 7 0;
#P connect 5 1 4 0;
#P connect 12 1 4 0;
#P connect 11 0 10 0;
#P connect 13 0 12 0;
#P connect 9 0 8 0;
#P connect 6 0 5 0;
#P connect 2 0 3 0;
#P connect 1 0 2 0;
#P connect 12 0 1 0;
#P connect 10 0 1 0;
#P connect 8 0 1 0;
#P connect 5 0 1 0;
#P window clipboard copycount 15;

#122959
Jul 31, 2009 at 11:18pm

i’ve updated my ol.mousewheel external to support horizontal scroll and modifiers. It’s also now working on windows, although i am not sure if the horizontal scroll is working properly there.

http://www.olilarkin.co.uk/index.php?p=max#mw

#122960
Aug 4, 2009 at 3:57pm

Hello,

works fine (h&v) with TwoFingersTrackpading on macbook_X.4.11 !

(Thanks a lot for sharing src ; cool to learn howto).

salutations.

#122961
Aug 7, 2009 at 6:31pm

Thanks!

The jitterwindow mode work also for me with TwoFingersTrackpading on MBPro ! The 2D mousewheel of the mighty mouse also work ! (knowing the lateral precision of mighty mouse is in fact only -1,+1, far behind the MBP Trackpad.)

..But the non-jitterwindow mode is just silent with all my mouses.
Is it because of my “USBoverdrive” mouse driver ? (that i use to make my PC mouse work on mac)

#122962
Jun 22, 2011 at 5:16pm

btw those links don’t work anymore… can this be found anywhere else?

#122963
Jun 22, 2011 at 8:05pm

here you go

—-
Endless Series v3 out now – A unique synthesis and effect plugin based on the Shepard Tone auditory illusion.

http://www.olilarkin.co.uk

#122964
Jun 23, 2011 at 1:11am

dope thanks!

#122965
Jun 26, 2011 at 3:06am

That’s fantastic. Love it!

The binding issue seems to be OK here on XP, you do have to have whatever window frontmost. It still grabs when you’re outside the window, as long as it’s still active (you can be over other app windows in the background, before any clicking). And you can have several windows bound, but only one works at a time, the frontmost/active. Very cool.

On XP at least, if you hold Alt, you don’t get a special modifier number, which is fine. BUT, once you release Alt, you go into the “underline mode” of the menu bar, and the wheel is no longer picked up until you click somewhere. That seems to make some sense, as your menu bar is then active for keyboard etc. commands, but what’s a little weird is that even jit.windows (with no menus available) show the same behavior. Really, no big deal, just don’t have Alt be a modifier for the user… besides, Shift and Control work just fine, each with their own modifier value, so they’re more useful anyways. I imagine Option on Mac probably doesn’t do this.

Great, great stuff… really want to put this into effect with camera zoom in GL land, it’s perfect for that and a lot more!

#122966

You must be logged in to reply to this topic.