mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-06 23:14:20 +00:00
added DefaultControllerEnvironment.loadLibrary convenience method for plugins. It will also respect the new net.java.games.input.librarypath property for locating natives (useful for applets). Removed the mac os x jinput-osx-legacy library loading, as it is not necessary anymore with the combined 10.3/10.4 library
This commit is contained in:
parent
d5ea04d3af
commit
4306f119c2
5 changed files with 25 additions and 36 deletions
|
|
@ -53,13 +53,7 @@ import net.java.games.util.plugins.Plugin;
|
|||
*/
|
||||
public final class DirectInputEnvironmentPlugin extends ControllerEnvironment implements Plugin {
|
||||
static {
|
||||
AccessController.doPrivileged(
|
||||
new PrivilegedAction() {
|
||||
public final Object run() {
|
||||
System.loadLibrary("jinput-dx8");
|
||||
return null;
|
||||
}
|
||||
});
|
||||
DefaultControllerEnvironment.loadLibrary("jinput-dx8");
|
||||
}
|
||||
|
||||
private final Controller[] controllers;
|
||||
|
|
|
|||
|
|
@ -53,13 +53,7 @@ import net.java.games.util.plugins.Plugin;
|
|||
*/
|
||||
public final class RawInputEnvironmentPlugin extends ControllerEnvironment implements Plugin {
|
||||
static {
|
||||
AccessController.doPrivileged(
|
||||
new PrivilegedAction() {
|
||||
public final Object run() {
|
||||
System.loadLibrary("jinput-raw");
|
||||
return null;
|
||||
}
|
||||
});
|
||||
DefaultControllerEnvironment.loadLibrary("jinput-raw");
|
||||
}
|
||||
|
||||
private final Controller[] controllers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue