Archived

This topic is now archived and is closed to further replies.

Mouse Rotation in a 3D Game

This topic is 5874 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Guest 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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
void glutWarpPointer( int x, int y ) is a glut function...included in glut.h
So you must have glut to use this function.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
void glutWarpPointer( int x, int y ) is a glut function...included in glut.h
So you must have glut to use this function.


yep, i know, but i wondered if something like this was possible without glut. just some normal windows method, which does the same.

Share this post


Link to post
Share on other sites