Re: [GtkGLExt] First person shooter games - mouse movement
- From: Peter Sivak <petikemail gmail com>
- To: gtkglext-list gnome org
- Subject: Re: [GtkGLExt] First person shooter games - mouse movement
- Date: Mon, 8 Feb 2010 16:14:40 -0800 (PST)
Hello again,
I have searched for some Gtkmm function which can place my cursor to the
center of the window (where the OpenGL scene is displayed) and I have found
this:
void Gdk::Display::warp_pointer(const Glib::RefPtr<Gdk::Screen>& screen,
int x, int y)
but the problem is that this function takes the "screen" (e.g. the whole
monitor) coordinates and "not the window" coordinates, so it will place the
cursor relative to the whole screen and not to the window.
I have also found the class:
Gdk::Window
which has a lot of options (also some "grabbing" options) but I didn't find
any "cursor placing" options in it.
So does anybody know how can I place my cursor to the center of some
Gtk::Widget (e.g. some window or drawing area)?
And the second question is about "mouse pointer grabbing".
I am a little bit confused about the term "grab" - could someone explain me
what does it mean to grab a mouse pointer? Is it something like that after
grab, the cursor disappears and does not react, and after ungrab, it appears
again, or what?
Thanks.
--
View this message in context: http://old.nabble.com/First-person-shooter-games---mouse-movement-tp27185222p27508541.html
Sent from the Gnome - GtkGLExt mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]