tags:

views:

10

answers:

0

I'm writing an open GL demo that will run in a Gtkmm window object. I'd like to use the mouse for 'looking around'. I've overridden on_motion_notify_event to get motion notifications, but what I'd like to do is actually move the cursor back to the middle of the window at every notification so that mouse never reaches the edge of the screen (to allow continuous camera rotation). I'd also like to hide the mouse cursor.

Suggestions on how I can do this? I've found solutions in plain GTK, but I'm not sure how those can be used with Gtkmm.

Thanks, -Daniel Brotherston