Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 16

android.hardware.input

Interfaces

InputManager.InputDeviceListener Listens for changes in input devices. 

Classes

InputManager Provides information about input devices and available key layouts.