summaryrefslogtreecommitdiff
path: root/include/input/InputDevice.h
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2019-02-05 18:51:32 -0800
committer Prabir Pradhan <prabirmsp@google.com> 2019-02-06 18:10:37 -0800
commitcae4b3ae7e92ee6243dbed83ff2ffcf2c7a78915 (patch)
treee9db2781f6bf9e5cb78907770114a060f7c79664 /include/input/InputDevice.h
parent5ef8f96efceb28869dbe56b2583128fedada1b56 (diff)
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
Diffstat (limited to 'include/input/InputDevice.h')
-rw-r--r--include/input/InputDevice.h7
1 files changed, 7 insertions, 0 deletions
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