Maybe a weird question… but is it possible to control a parameter with the scroll wheel of the mouse?
Have plans for a future plugin where this would be really nice.
Maybe a weird question… but is it possible to control a parameter with the scroll wheel of the mouse?
Have plans for a future plugin where this would be really nice.
This works fine for me here. Are you having problem with it? Don’t forget you can also press ctrl to affect the sensitivity.
I’ve been using my laptop touchpad for a little while because of a problem with my mouse, so I didn’t get a chance to test it. I will get a new mouse soon though
Thanks!
Edit: I was just curious if it was possible
So I finally got to test it, and it works great. One thing I noticed though, if I use:
if (changed2(kSlider) == 1)
Using the mouse left button will trigger this if-statement, but if I only scroll the mouse wheel while hovering the slider, it will not trigger. Is this intended?
That’s not the case for me here with my mouse? Scrolling the mouse wheel triggers it just fine. When you scroll, do you see the values of the slider moving?
Oh yes, that’s a good one. Can you send me on your test .csd file? Thanks.
XY-pad Test.csd (1.5 KB)
I tested now, and if you remove the first two if-statements, then the resizing works, so seems like there’s something with my code
Edit: Seems like it’s the 2nd if-statement (elseif kMouseDown != 1 then)
I think the issue here is that an identifier channel will only be modified/updated once per k-cycle. You are setting the ident channel continuously when the mouse is not pressed down:
elseif kMouseDown != 1 then
SMessage sprintfk "pos(%d, %d)", kCurrentPosX, kCurrentPosY
chnset SMessage, "ballIdent"
endif
You need to think the logic of this because moving a mouse wheel does not constitute a mouse down event.
Ah thank you, I didn’t know about that!