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
25 lines
600 B
Java
25 lines
600 B
Java
package android.hardware.input;
|
|
|
|
import android.os.Handler;
|
|
import android.view.InputDevice;
|
|
|
|
public class InputManager {
|
|
public static interface InputDeviceListener {
|
|
abstract void onInputDeviceAdded(int deviceId);
|
|
abstract void onInputDeviceChanged(int deviceId);
|
|
abstract void onInputDeviceRemoved(int deviceId);
|
|
}
|
|
|
|
public void registerInputDeviceListener(InputManager.InputDeviceListener listener, Handler handler) {
|
|
}
|
|
|
|
public int[] getInputDeviceIds () {
|
|
return InputDevice.getDeviceIds();
|
|
}
|
|
|
|
public InputDevice getInputDevice (int id) {
|
|
return InputDevice.getDevice(id);
|
|
}
|
|
|
|
}
|