mousewheel and jit.window

    Oct 25 2013 | 9:27 pm
    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...

    • Oct 26 2013 | 8:22 am
      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 :
    • Oct 26 2013 | 12:57 pm
      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)...
    • Oct 26 2013 | 8:54 pm
      @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...
    • Nov 01 2013 | 8:53 pm
      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.