|
From: <eli...@us...> - 2007-01-10 13:55:43
|
Revision: 2722
http://svn.sourceforge.net/java-game-lib/?rev=2722&view=rev
Author: elias_naur
Date: 2007-01-10 05:55:42 -0800 (Wed, 10 Jan 2007)
Log Message:
-----------
AWTInput: Don't create the Robot before it is needed
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2007-01-07 23:21:24 UTC (rev 2721)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2007-01-10 13:55:42 UTC (rev 2722)
@@ -56,7 +56,6 @@
protected AbstractAWTInput(AWTGLCanvas canvas) {
this.canvas = canvas;
- this.robot = AWTUtil.createRobot(canvas);
}
protected MouseEventQueue getMouseEventQueue() {
@@ -127,6 +126,8 @@
}
public void setCursorPosition(int x, int y) {
+ if (robot == null)
+ robot = AWTUtil.createRobot(canvas);
AWTUtil.setCursorPosition(canvas, robot, x, y);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|