mousewheel and jit.window

Oct 25, 2013 at 2:27pm

mousewheel and jit.window

I have a large standalone in which I would like to be able to use the mousewheel to be able to rapidly scroll through values in a number box.

I know that jit.window has a mousewheel parameter, but I’m clueless as to how to use it within a patch that otherwise doesn’t use any Jitter at all, let alone a jit.window?

Also, how does one interpret the data that comes out of jit.window for the mousewheel parameter? I can’t make heads or tails of it…

#269139
Oct 26, 2013 at 1:22am

I’ve had a look at this one year ago to help someone on the forum but couldn’t find any way that doesn’t involve a jit.window. The mousewheel speed is given with something like this (but I guess you had figured this out…). I got values ranging from about -0.5 to 0.5 :

<code>

– Pasted Max Patch, click to expand. –

</code>

#269175
Oct 26, 2013 at 5:57am

Can’t you use the hi object to get the mousewheel info? I don’t have a mouse to test, but i see that if i scroll on my trackpad (mbp) i get numbers such as 6 1, 6 2, 6 3 or 6 -1, 6 -2, 6 -3… If i don’t use the scrolling function i always get 6 0..

edit: actually it works with an usb mouse and hi on my mbp: param 10 not 0 if scrolling (1 or -1 for each step)…

#269187
Oct 26, 2013 at 1:54pm

@Tobias – the hi object is a good idea, I will give it a look.

@Stephane – thanks, I had also gotten that far, but I think there is more to interpreting the info than just looking at that last value… Either way though, I can’t have a jit.window be the frontmost window in my application, so I don’t think it would work for me anyway…

#269211
Nov 1, 2013 at 1:53pm

Follow up on using the hi object – it does work, but the bad news is that on two different mice I’ve looked at on two different systems, the code that the hi object outputted for mousewheel movement differed. So coming up with something that will work across systems (which for me is a requirement) doesn’t look promising.

#269877

You must be logged in to reply to this topic.