[ANN] OSX Mouse scroll wheel external
Cool stuff! haven’t thought of a use for this yet, but maybe i’ll find one later.
- 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.
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.
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;
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)
btw those links don’t work anymore… can this be found anywhere else?
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!
Forums > MaxMSP