mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2025-12-06 08:01:59 +01:00
Add an axis identifier for unknown axis types and get directx to use it
if it doesn't recognise an axis on construction.
This commit is contained in:
parent
1dc8f9ea11
commit
99e28a3d9d
|
|
@ -273,6 +273,11 @@ public interface Component {
|
||||||
*/
|
*/
|
||||||
public static final Axis POV = new Axis("pov");
|
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 {
|
public static class Button extends Identifier {
|
||||||
|
|
|
||||||
|
|
@ -472,7 +472,7 @@ final class IDirectInputDevice {
|
||||||
case IDirectInputDevice.GUID_Button:
|
case IDirectInputDevice.GUID_Button:
|
||||||
return getNextButtonIdentifier();
|
return getNextButtonIdentifier();
|
||||||
default:
|
default:
|
||||||
return null;
|
return Component.Identifier.Axis.UNKNOWN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue