diff options
| author | Jeff Brown <jeffbrown@google.com> | 2011-01-02 16:37:43 -0800 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2011-01-04 17:31:24 -0800 |
| commit | b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad (patch) | |
| tree | e4473f1b22e3051a8f82239256148820d4e097d5 /include/ui/PointerController.h | |
| parent | a5af5d6b122b5d7337e6640deabf7886689679eb (diff) | |
| download | frameworks_base-b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad.zip frameworks_base-b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad.tar.gz frameworks_base-b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad.tar.bz2 | |
Mouse pointer integration.
Added support for loading the pointer icon from a resource.
Moved the system server related bits of the input manager out
of libui and into libinput since they do not need to be linked into
applications.
Change-Id: Iec11e0725b3add2b905c51f8ea2c3b4b0d1a2d67
Diffstat (limited to 'include/ui/PointerController.h')
| -rw-r--r-- | include/ui/PointerController.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/include/ui/PointerController.h b/include/ui/PointerController.h deleted file mode 100644 index 4db24e5..0000000 --- a/include/ui/PointerController.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2010 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef _UI_POINTER_CONTROLLER_H -#define _UI_POINTER_CONTROLLER_H - -#include <utils/RefBase.h> - -namespace android { - -enum { - POINTER_BUTTON_1 = 1 << 0, -}; - -/** - * Interface for tracking a single (mouse) pointer. - * - * The pointer controller is responsible for providing synchronization and for tracking - * display orientation changes if needed. - */ -class PointerControllerInterface : public virtual RefBase { -protected: - PointerControllerInterface() { } - virtual ~PointerControllerInterface() { } - -public: - /* Gets the bounds of the region that the pointer can traverse. - * Returns true if the bounds are available. */ - virtual bool getBounds(float* outMinX, float* outMinY, - float* outMaxX, float* outMaxY) const = 0; - - /* Move the pointer. */ - virtual void move(float deltaX, float deltaY) = 0; - - /* Sets a mask that indicates which buttons are pressed. */ - virtual void setButtonState(uint32_t buttonState) = 0; - - /* Gets a mask that indicates which buttons are pressed. */ - virtual uint32_t getButtonState() const = 0; - - /* Sets the absolute location of the pointer. */ - virtual void setPosition(float x, float y) = 0; - - /* Gets the absolute location of the pointer. */ - virtual void getPosition(float* outX, float* outY) const = 0; -}; - -} // namespace android - -#endif // _UI_POINTER_CONTROLLER_H |
