diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-03-02 14:41:58 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2011-03-02 15:37:57 -0800 |
commit | 80f3e7cc1506bbb4bec458e15629805a7c1df7ee (patch) | |
tree | 5074a61abeedeb60f9d861fc25f5de50f156dcf2 /include/ui | |
parent | 76048aeee7812a6d3a05e6204f561659623e785c (diff) | |
download | frameworks_native-80f3e7cc1506bbb4bec458e15629805a7c1df7ee.zip frameworks_native-80f3e7cc1506bbb4bec458e15629805a7c1df7ee.tar.gz frameworks_native-80f3e7cc1506bbb4bec458e15629805a7c1df7ee.tar.bz2 |
Fade out the mouse pointer after inactivity or other events.
Fades out the mouse pointer:
- after 15 seconds of inactivity normally
- after 3 seconds of inactivity in lights out mode
- after a non-modifier key down
- after a touch down
Extended the native Looper to support enqueuing time delayed
messages. This is used by the PointerController to control
pointer fade timing.
Change-Id: I87792fea7dbe2d9376c78cf354fe3189a484d9da
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/Input.h | 8 | ||||
-rw-r--r-- | include/ui/Keyboard.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index 86ce098..082f11c 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -52,6 +52,14 @@ enum { }; /* + * SystemUiVisibility constants from View. + */ +enum { + ASYSTEM_UI_VISIBILITY_STATUS_BAR_VISIBLE = 0, + ASYSTEM_UI_VISIBILITY_STATUS_BAR_HIDDEN = 0x00000001, +}; + +/* * Maximum number of pointers supported per motion event. * Smallest number of pointers is 1. * (We want at least 10 but some touch controllers obstensibly configured for 10 pointers diff --git a/include/ui/Keyboard.h b/include/ui/Keyboard.h index 54bc968..609f319 100644 --- a/include/ui/Keyboard.h +++ b/include/ui/Keyboard.h @@ -127,6 +127,11 @@ extern const char* getAxisLabel(int32_t axisId); */ extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState); +/** + * Returns true if a key is a meta key like ALT or CAPS_LOCK. + */ +extern bool isMetaKey(int32_t keyCode); + } // namespace android #endif // _UI_KEYBOARD_H |