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.

This commit is contained in:
Kevin Glass 2006-08-30 02:47:49 +00:00
parent a863ede4ae
commit 7f9faf144d
1 changed files with 0 additions and 12 deletions

View File

@ -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 {