fingerpaint icon indicating copy to clipboard operation
fingerpaint copied to clipboard

Feature Request: "hover" cursor

Open mdmayfield opened this issue 3 years ago • 3 comments

This is a great & fun project - thanks for making it. I saw it on OMG! Ubuntu.

Would you consider implementing a mode where we only see a cursor at the point on the canvas that a touch corresponds to...and then it only draws while holding down a key?

Thank you!

mdmayfield avatar Aug 19 '22 13:08 mdmayfield

+1 FWIW

ittayd avatar Aug 06 '23 13:08 ittayd

I tried to fiddle with the code. I can't see how to make the cursor appear where drawing is supposed to be. The code just draws on the canvas while the cursor is even out of the window.

ittayd avatar Aug 08 '23 13:08 ittayd

I don't use the OS cursor at all (because I take absolute measurements from the touchpad directly, rather than relative movements like the OS cursor)

You can create a cursor image after this line and take the last line of each event and move the cursor there.

Then add a boolean to each event/line signaling when the key/button (whichever you prefer) is pressed, to determine if you want to draw or not (read it in the event loop).

Make sure to disable the logic that closes the window when any key/button is pressed or your window will close.

Sorry for not having much time to maintain this app, but that's the beauty of open source, you don't need my permission to add it :)

Wazzaps avatar Aug 08 '23 15:08 Wazzaps