Hi guys, I'm making an Etch A Sketch program in C#. I have two buttons for the "knobs". Right now, I'm handling the mousemove event of the button to evaluate if the user is dragging the mouse up or down, and then updating the etch a sketch appropriatly.
This works fine, as long as you drag the mouse vertically. However, in real life, you rotate the knobs clockwise or counter clockwise. Can someone help me to puzzle out the algorithm to determine if they're dragging clockwise or counterclockwise?
I'm thinking something with comparing the current mouse coordinates with a previous "snapshot", but the answer is just beyond my thoughts. Can anyone help?