mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-04 14:07:53 +00:00
Use java logging instead of system out in core and plugins.
This commit is contained in:
parent
86fb3d5499
commit
967fde8a93
4 changed files with 25 additions and 16 deletions
|
|
@ -25,6 +25,8 @@
|
|||
*/
|
||||
package net.java.games.input;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* Mapping utility class between native type ints and string names or
|
||||
* Key.Identifiers
|
||||
|
|
@ -32,6 +34,7 @@ package net.java.games.input;
|
|||
*/
|
||||
class LinuxNativeTypesMap {
|
||||
private static LinuxNativeTypesMap INSTANCE = new LinuxNativeTypesMap();
|
||||
private static Logger log = Logger.getLogger(LinuxNativeTypesMap.class.getName());
|
||||
|
||||
private final Component.Identifier relAxesIDs[];
|
||||
private final Component.Identifier absAxesIDs[];
|
||||
|
|
@ -755,7 +758,7 @@ class LinuxNativeTypesMap {
|
|||
try {
|
||||
retval = INSTANCE.relAxesIDs[nativeID];
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
System.out.println("INSTANCE.relAxesIDis only " + INSTANCE.relAxesIDs.length + " long, so " + nativeID + " not contained");
|
||||
log.warn("INSTANCE.relAxesIDis only " + INSTANCE.relAxesIDs.length + " long, so " + nativeID + " not contained");
|
||||
//ignore, pretend it was null
|
||||
}
|
||||
if(retval == null) {
|
||||
|
|
@ -773,7 +776,7 @@ class LinuxNativeTypesMap {
|
|||
try {
|
||||
retval = INSTANCE.absAxesIDs[nativeID];
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
System.out.println("INSTANCE.absAxesIDs is only " + INSTANCE.absAxesIDs.length + " long, so " + nativeID + " not contained");
|
||||
log.warn("INSTANCE.absAxesIDs is only " + INSTANCE.absAxesIDs.length + " long, so " + nativeID + " not contained");
|
||||
//ignore, pretend it was null
|
||||
}
|
||||
if(retval == null) {
|
||||
|
|
@ -791,7 +794,7 @@ class LinuxNativeTypesMap {
|
|||
try {
|
||||
retval = INSTANCE.buttonIDs[nativeID];
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
System.out.println("INSTANCE.buttonIDs is only " + INSTANCE.buttonIDs.length + " long, so " + nativeID + " not contained");
|
||||
log.warn("INSTANCE.buttonIDs is only " + INSTANCE.buttonIDs.length + " long, so " + nativeID + " not contained");
|
||||
//ignore, pretend it was null
|
||||
}
|
||||
if(retval == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue