mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2025-12-06 08:01:59 +01:00
Added property java.controllerPluginPath that enables users to specify
their own path for the controller plugin.
This commit is contained in:
parent
144c3501e5
commit
19b89b0942
|
|
@ -159,10 +159,18 @@ class DefaultControllerEnvironment extends ControllerEnvironment {
|
|||
|
||||
/* This is jeff's new plugin code using Jeff's Plugin manager */
|
||||
private void scanControllers() {
|
||||
String pluginPathName = System.getProperty("jinput.controllerPluginPath");
|
||||
if(pluginPathName == null) {
|
||||
System.out.println("Using default controller plugin path");
|
||||
pluginPathName = "controller";
|
||||
} else {
|
||||
System.out.println("Using specified controller plugin path (" + pluginPathName + ")");
|
||||
}
|
||||
|
||||
scanControllersAt(System.getProperty("java.home") +
|
||||
File.separator + "lib"+File.separator+"controller");
|
||||
File.separator + "lib"+File.separator + pluginPathName);
|
||||
scanControllersAt(System.getProperty("user.dir")+
|
||||
File.separator+ "controller");
|
||||
File.separator + pluginPathName);
|
||||
}
|
||||
|
||||
private void scanControllersAt(String path) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue