diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-04-11 11:54:25 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2011-04-11 14:08:29 -0700 |
commit | 5541de9ea3513a12d1ac2ad07e7e04a3aa7741a0 (patch) | |
tree | 3ac3cd85bf588df25aed0a0df29e70629a096547 /services/input/tests/InputReader_test.cpp | |
parent | 5008e92d1fd573d926cd55c39ca723a6fbdf7c4b (diff) | |
download | frameworks_base-5541de9ea3513a12d1ac2ad07e7e04a3aa7741a0.zip frameworks_base-5541de9ea3513a12d1ac2ad07e7e04a3aa7741a0.tar.gz frameworks_base-5541de9ea3513a12d1ac2ad07e7e04a3aa7741a0.tar.bz2 |
Add a sprite controller.
Refactored PointerController to extract the surface management
code to a new component called a SpriteController so that it can
be used to move finger tracking spots around the screen as well.
The SpriteController is designed to fully decouple the client from
any latency introduced by surface transactions and drawing.
All sprite updates are performed asynchronously on the Looper using
a copy of the sprite state.
Added a stub SpotController implementation for touch pad UX.
It will be implemented in a subsequent patch.
Fixed a little bug in pointer orientation changes when entering
DISPLAY_ORIENTATION_90 the x offset was clobbered.
Change-Id: Ib25d162d577c9b354cb74d5d761c3c9f9f438d42
Diffstat (limited to 'services/input/tests/InputReader_test.cpp')
-rw-r--r-- | services/input/tests/InputReader_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/input/tests/InputReader_test.cpp b/services/input/tests/InputReader_test.cpp index 4c5f239..ba8ca9c 100644 --- a/services/input/tests/InputReader_test.cpp +++ b/services/input/tests/InputReader_test.cpp @@ -192,6 +192,10 @@ private: virtual sp<PointerControllerInterface> obtainPointerController(int32_t deviceId) { return mPointerControllers.valueFor(deviceId); } + + virtual sp<SpotControllerInterface> obtainSpotController(int32_t device) { + return NULL; + } }; |