Grab and hide mouse cursor

How do you make the mouse cursor hidden and make it so that it cant go outside of the window?

try using ofHideCursor() ref here.

You can constrain the cursor to remain in the window.

Hopew this helps,

Best,

P

1 Like

Thanks, but is there any way to move the mouse cursor? Or should I use some native win32 functions for it?

It’s not OF native as far as I know.

1 Like

alright, I found the code for it in the ofxFPSCamera addon.