[GtkGLExt] First person shooter games - mouse movement

I would like to make a "first person shooter" (fps) game, like
Counter-Strike or Far Cry, using "OpenGL+gktglextmm" and "gtkmm" as a window

But I have a problem with "mouse movement" - in fps games, when you are
moving with your player using mouse, you have the mouse pointer still in the
center of the window. But when I construct some gtkmm window and pass the
mouse pointer over it, I can then move the mouse pointer for example to the
left and after some time I "go out" from that window - but that is what I
"don't" want.

Is there any function to tell the gtkmm window manager, that when I position
the mouse pointer over the window, the mouse pointer will "stick" to that
window and only for example after the ESCAPE click, the mouse pointer
"release" from the window and become again the normal pointer?
View this message in context: http://old.nabble.com/First-person-shooter-games---mouse-movement-tp27185222p27185222.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]