Mouse Rotation in a 3D Game
I''ve implemented some mouse routines to turn in the game, which work. But now i have the problem that i can turn for just a small space, because the mouse cursor is still restricted to some space, and i can''t figure out how to register movements that are out of this window.
Can someone help me with this?
I hope i''ve explained it clear enough btw
There are functions you can use to recenter the mouse pointer.
e.g.
void glutWarpPointer( int x, int y )
e.g.
void glutWarpPointer( int x, int y )
On Windows, you can also use DirectInput which has some low-level mouse functions. Not as portable as a "glut" function though. However getting raw mouse data allows you to have a better control.
quote:Original post by Anonymous Poster
On Windows, you can also use DirectInput which has some low-level mouse functions. Not as portable as a "glut" function though. However getting raw mouse data allows you to have a better control.
Well i don''t want to use any DirectX API, so that''s not a real option for me
quote:Original post by bodoche
Are there any functions like that in Java 1.2 ?
You can try JDK 1.4 for that. I don''t know about previous JDK''s, so it might be available in previous versions..
quote:Original post by Fruny
There are functions you can use to recenter the mouse pointer.
e.g.
void glutWarpPointer( int x, int y )
Is it possible to do this without GLUT?
void glutWarpPointer( int x, int y ) is a glut function...included in glut.h
So you must have glut to use this function.
So you must have glut to use this function.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement