You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -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*/);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user