Skip to main content
gamedev.net
🔒 Locked

Cursor

Started by guivieira May 14, 2004 at 9:20 AM 3 replies 550+ views
Original Post
guivieira
guivieira
How can I center the cursor''s position in a frame, in an opengl context in JAVA???
Koroljov
Koroljov
Use java.awt.Robot.
It has a method mouseMove(int x, int y);

[edited by - Koroljov on May 14, 2004 10:25:31 AM]
Why do my programs never work on other computers?
guivieira
guivieira
wow! thank you!!!
Aldacron
Aldacron
quote:
Original post by guivieira
How can I center the cursor''s position in a frame, in an opengl context in JAVA???



You didn''t specify which Java opengl binding you are using (there are a few). The answer given may not be applicable to all particularly when using LWJGL).
guivieira
guivieira
im using gl4java by jausoft.. its great, by the way

and it worked

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.