From 7f9faf144d993b45f82b086c0ec47073fa283bd7 Mon Sep 17 00:00:00 2001 From: Kevin Glass Date: Wed, 30 Aug 2006 02:47:49 +0000 Subject: [PATCH] Removed sanity checks for controllers. All controllers are now reported allowing the developer to make the decision over which ones to display to the user. --- src/java/org/lwjgl/input/Controllers.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/java/org/lwjgl/input/Controllers.java b/src/java/org/lwjgl/input/Controllers.java index 49beb9e5..d213327e 100644 --- a/src/java/org/lwjgl/input/Controllers.java +++ b/src/java/org/lwjgl/input/Controllers.java @@ -72,18 +72,6 @@ public class Controllers { if (sub.length == 0) { JInputController controller = new JInputController(controllerCount,c); - // sanity checks to ensure we're actually getting game controllers rather than - // any old detected device - - // if we've got no buttons at all we're not a game controller - if (controller.getButtonCount() == 0) { - return; - } - // if we've got no axis at all we're not a game controller - if (controller.getAxisCount() == 0) { - return; - } - controllers.add(controller); controllerCount++; } else {