From cae4b3ae7e92ee6243dbed83ff2ffcf2c7a78915 Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Tue, 5 Feb 2019 18:51:32 -0800 Subject: Remove EventHub header from include dir Since the EventHub header does not need to be exported, this removes the header from the include directory. This also moves the reserved input device ids from EventHub to input/InputDevice.h. Bug: None Test: None Change-Id: I272878245ee60c85e4539b381a20962ca9236cfd --- include/input/InputDevice.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/input') diff --git a/include/input/InputDevice.h b/include/input/InputDevice.h index 34d164c280..ce8db91980 100644 --- a/include/input/InputDevice.h +++ b/include/input/InputDevice.h @@ -165,6 +165,13 @@ extern std::string getInputDeviceConfigurationFilePathByDeviceIdentifier( extern std::string getInputDeviceConfigurationFilePathByName( const std::string& name, InputDeviceConfigurationFileType type); +enum ReservedInputDeviceId : int32_t { + // Device id of a special "virtual" keyboard that is always present. + VIRTUAL_KEYBOARD_ID = -1, + // Device id of the "built-in" keyboard if there is one. + BUILT_IN_KEYBOARD_ID = 0, +}; + } // namespace android #endif // _LIBINPUT_INPUT_DEVICE_H -- cgit v1.2.3-59-g8ed1b