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:
parent
a863ede4ae
commit
7f9faf144d
|
@ -72,18 +72,6 @@ public class Controllers {
|
||||||
if (sub.length == 0) {
|
if (sub.length == 0) {
|
||||||
JInputController controller = new JInputController(controllerCount,c);
|
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);
|
controllers.add(controller);
|
||||||
controllerCount++;
|
controllerCount++;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue