From a6dbfdd3a858aac52cc87f80f91e8eef7d613605 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 11 Apr 2011 11:54:25 -0700 Subject: Add a sprite controller. (DO NOT MERGE) 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: I6d59d80df9af61e93af50290e7776337d10c9d5a --- services/input/tests/InputReader_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/input/tests/InputReader_test.cpp') diff --git a/services/input/tests/InputReader_test.cpp b/services/input/tests/InputReader_test.cpp index 60549c6..6feb2c7 100644 --- a/services/input/tests/InputReader_test.cpp +++ b/services/input/tests/InputReader_test.cpp @@ -192,6 +192,10 @@ private: virtual sp obtainPointerController(int32_t deviceId) { return mPointerControllers.valueFor(deviceId); } + + virtual sp obtainSpotController(int32_t device) { + return NULL; + } }; -- cgit v1.1