mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-05 06:25:47 +00:00
Revert last change, might be a rumbling only device, or a device with only subdevices.
This commit is contained in:
parent
db12311aa5
commit
92c7186445
1 changed files with 1 additions and 4 deletions
|
|
@ -174,10 +174,7 @@ public final class DirectInputEnvironmentPlugin extends ControllerEnvironment im
|
|||
|
||||
private final AbstractController createControllerFromDevice(IDirectInputDevice device, Controller.Type type) {
|
||||
Component[] components = createComponents(device, false);
|
||||
AbstractController controller = null;
|
||||
if(type == Controller.Type.UNKNOWN && components.length>0) {
|
||||
controller = new DIAbstractController(device, components, new Controller[]{}, device.getRumblers(), type);
|
||||
}
|
||||
AbstractController controller = new DIAbstractController(device, components, new Controller[]{}, device.getRumblers(), type);
|
||||
return controller;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue