From 5541de9ea3513a12d1ac2ad07e7e04a3aa7741a0 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 11 Apr 2011 11:54:25 -0700 Subject: 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 --- 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 4c5f239..ba8ca9c 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