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 | 05dc66ada6b61a6bdf806ffaa62617ac5394695d (patch) | |
tree | a7e395476241706de31498185a5c2ccb979bcb54 /services/input/InputReader.h | |
parent | e43111fad31ad8e36a66df52a8c6002799996413 (diff) | |
download | frameworks_base-05dc66ada6b61a6bdf806ffaa62617ac5394695d.zip frameworks_base-05dc66ada6b61a6bdf806ffaa62617ac5394695d.tar.gz frameworks_base-05dc66ada6b61a6bdf806ffaa62617ac5394695d.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 'services/input/InputReader.h')
-rw-r--r-- | services/input/InputReader.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/services/input/InputReader.h b/services/input/InputReader.h index cf41535..b344ffe 100644 --- a/services/input/InputReader.h +++ b/services/input/InputReader.h @@ -157,6 +157,8 @@ public: virtual bool shouldDropVirtualKey(nsecs_t now, InputDevice* device, int32_t keyCode, int32_t scanCode) = 0; + virtual void fadePointer() = 0; + virtual InputReaderPolicyInterface* getPolicy() = 0; virtual InputDispatcherInterface* getDispatcher() = 0; virtual EventHubInterface* getEventHub() = 0; @@ -241,6 +243,8 @@ private: virtual void updateGlobalMetaState(); virtual int32_t getGlobalMetaState(); + virtual void fadePointer(); + InputConfiguration mInputConfiguration; void updateInputConfiguration(); @@ -299,6 +303,8 @@ public: int32_t getMetaState(); + void fadePointer(); + inline const PropertyMap& getConfiguration() { return mConfiguration; } @@ -351,6 +357,8 @@ public: virtual int32_t getMetaState(); + virtual void fadePointer(); + protected: InputDevice* mDevice; InputReaderContext* mContext; @@ -459,6 +467,8 @@ public: virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); + virtual void fadePointer(); + private: // Amount that trackball needs to move in order to generate a key event. static const int32_t TRACKBALL_MOVEMENT_THRESHOLD = 6; |