api-impl: InputEvent: return stub InputDevice instead of NULL

this makes touch work in Unity for games using the "new" input system
This commit is contained in:
Mis012
2024-01-29 14:54:58 +01:00
parent b40a76fcfb
commit 6136243fec

View File

@@ -68,7 +68,7 @@ public abstract class InputEvent {
* @return The device, or null if unknown.
*/
public final InputDevice getDevice() {
return null /*InputDevice.getDevice(getDeviceId())*/;
return InputDevice.getDevice(0/*FIXME*/);
}
/**