diff options
author | 2019-11-25 15:11:23 -0800 | |
---|---|---|
committer | 2019-12-02 10:39:51 -0800 | |
commit | 7feb2eaf82d88bd4d903f43776860015806274ce (patch) | |
tree | d78a531612c922695db1d70c7ba0949e15706145 /include/android/input.h | |
parent | 28d8c7db9bda4410adeee25affdff1e546d6de7f (diff) |
Add FocusEvent and InputMessage::Type::FOCUS
FocusEvents will be consumed by InputConsumer on the app side. They
will be used to notify app that focus has been gained / lost. They will
also carry information about the current state of touch mode.
Also add a new type of InputMessage with type FOCUS.
This new data structure will be used to pass focus events to the apps
from input across the socket.
Bug: 70668286
Test: presubmit
Change-Id: I88582c64ee41ecb49623b9b7f5c149eafa694788
Diffstat (limited to 'include/android/input.h')
-rw-r--r-- | include/android/input.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/android/input.h b/include/android/input.h index ce439c6d75..f51cd79504 100644 --- a/include/android/input.h +++ b/include/android/input.h @@ -158,7 +158,10 @@ enum { AINPUT_EVENT_TYPE_KEY = 1, /** Indicates that the input event is a motion event. */ - AINPUT_EVENT_TYPE_MOTION = 2 + AINPUT_EVENT_TYPE_MOTION = 2, + + /** Focus event */ + AINPUT_EVENT_TYPE_FOCUS = 3, }; /** |