|
From: <eli...@us...> - 2006-08-31 13:36:06
|
Revision: 2566
http://svn.sourceforge.net/java-game-lib/?rev=2566&view=rev
Author: elias_naur
Date: 2006-08-31 06:35:36 -0700 (Thu, 31 Aug 2006)
Log Message:
-----------
Don't throw exceptions on Mouse.getEventButtonState
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
Modified: trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2006-08-30 02:47:49 UTC (rev 2565)
+++ trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2006-08-31 13:35:36 UTC (rev 2566)
@@ -394,13 +394,10 @@
}
/**
- * Get the current events button state. If <code>getEventButton()</code> is -1,
- * and IllegalStateException is thrown.
+ * Get the current events button state.
* @return Current events button state.
*/
public static boolean getEventButtonState() {
- if (eventButton == -1)
- throw new IllegalStateException("Current event has no button state change");
return eventState;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|