aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--coreAPI/src/java/net/java/games/input/Component.java5
-rw-r--r--plugins/windows/src/java/net/java/games/input/IDirectInputDevice.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/coreAPI/src/java/net/java/games/input/Component.java b/coreAPI/src/java/net/java/games/input/Component.java
index f3f9c9a..55de7f9 100644
--- a/coreAPI/src/java/net/java/games/input/Component.java
+++ b/coreAPI/src/java/net/java/games/input/Component.java
@@ -273,6 +273,11 @@ public interface Component {
*/
public static final Axis POV = new Axis("pov");
+ /**
+ * An unknown axis.
+ */
+ public static final Axis UNKNOWN = new Axis("unknown");
+
}
public static class Button extends Identifier {
diff --git a/plugins/windows/src/java/net/java/games/input/IDirectInputDevice.java b/plugins/windows/src/java/net/java/games/input/IDirectInputDevice.java
index 2e3e22f..5f05732 100644
--- a/plugins/windows/src/java/net/java/games/input/IDirectInputDevice.java
+++ b/plugins/windows/src/java/net/java/games/input/IDirectInputDevice.java
@@ -472,7 +472,7 @@ final class IDirectInputDevice {
case IDirectInputDevice.GUID_Button:
return getNextButtonIdentifier();
default:
- return null;
+ return Component.Identifier.Axis.UNKNOWN;
}
}