I hope someone can help me with this, as I have multiple times gone over it and cannot find the reason that it is not working.
I made a simple extract from my project file as the original contains hundreds or maybe thousands of lines of code and would be impossible to explain.
I use an Arturia Beatstep controller - And I control an image editing program.
Imagine 6 different sliders
The rotate sliders can be moved using shortcuts
The AA - DD sliders can only be moved by placing the cursor in the middle of the slider and using mouse scroll on a dial.
What I like to do is after a value has been changed on the slider use a button (Down) to click on the name of the slider to see the before (or start position) On the (UP) it reverts back to the setting.
Every time a value is changed rr is given another value. That value is used to assign the corresponding hx and hy value which then can be assigned to the X and Y value of the mouse position.
This does works for the sliders which use shortcuts, in this example the Rotate sliders.
And I have assigned this successfully to about 35 different sliders.
But somehow I do not get it to work for the sliders which use a mouse position. Although the rr value updates the mouse position on the before after button always goes to the last value used where shortcuts are used.
Is there anyone who can see what I do wrong?
Thanks for looking!
By writing this and making a simple version of the code I found a way to solve it but it is not a very good solution.
Shortcut - Mouse test.bmtp (5.1 KB)