diff options
author | Jun Mukai <mukai@google.com> | 2015-12-03 01:13:31 -0800 |
---|---|---|
committer | Jun Mukai <mukai@google.com> | 2015-12-18 10:22:43 -0800 |
commit | 347e5d498f4c216d588e98776a386d8bdf93d05c (patch) | |
tree | 8f9b85983dcee4deeefc7fcbaa64124b6ea176f8 /libs/input/PointerController.h | |
parent | 92e432c30e2304272c2f5b1b33366f32c3d763cf (diff) |
Introduce pointer capture API.
This depends on I4189eb4d93f50c2865b7a325727be5ceebcc71f8 of
frameworks/native.
Bug: 5452473
Change-Id: Ie21e521f3e5c581f976dc0feb5d84bfa48b046cd
Diffstat (limited to 'libs/input/PointerController.h')
-rw-r--r-- | libs/input/PointerController.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/input/PointerController.h b/libs/input/PointerController.h index 9ba37b338276..c1381f32a37f 100644 --- a/libs/input/PointerController.h +++ b/libs/input/PointerController.h @@ -111,6 +111,10 @@ public: void setInactivityTimeout(InactivityTimeout inactivityTimeout); void reloadPointerResources(); + /* Detach or attach the pointer icon status. When detached, the pointer icon disappears + * and the icon location does not change at all. */ + void detachPointerIcon(bool detached); + private: static const size_t MAX_RECYCLED_SPRITES = 12; static const size_t MAX_SPOTS = 12; @@ -180,6 +184,8 @@ private: int32_t buttonState; + bool iconDetached; + Vector<Spot*> spots; Vector<sp<Sprite> > recycledSprites; } mLocked; |