My app has some features which should not appear unless the device is connected with a mouse. but seems no APIs to detect the mouse existence?
You can use InputManager.InputDeviceListener to detect whether there's a mouse connected. The class listens for changes in input devices.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments