From ec4a94d47d9febca4da7e134d65c1af2d0d1a401 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 31 Aug 2006 13:35:36 +0000 Subject: [PATCH] Don't throw exceptions on Mouse.getEventButtonState --- src/java/org/lwjgl/input/Mouse.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/java/org/lwjgl/input/Mouse.java b/src/java/org/lwjgl/input/Mouse.java index cc72e3b7..96bed759 100644 --- a/src/java/org/lwjgl/input/Mouse.java +++ b/src/java/org/lwjgl/input/Mouse.java @@ -394,13 +394,10 @@ public class Mouse { } /** - * Get the current events button state. If getEventButton() 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; }