DirectX mouse problems
by Steve Fletcher · in Technical Issues · 02/18/2001 (6:03 pm) · 1 replies
How do I set the mouse position with DirectX? I'm using Java with the GameFrame library, but GameFrame doesn't have a function for setting the the mouse position.
- Steve Fletcher
- Steve Fletcher
About the author
Steve Fletcher
/** sets the position of the mouse cursor to (x, y)
@param x - the new x position for the mouse cursor
@param y - the new y position for the mouse cursor*/
private static void setMousePosition(int x, int y) {
com.ms.wfc.ui.Cursor.setPosition(
new com.ms.wfc.ui.Point(x, y));
} //end setMousePosition
- Steve Fletcher