summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-05-01 18:39:00 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-01 18:39:00 -0700
commit0632b35b6828cd4324b3d218c2e38f895e819aad (patch)
tree671bc68d2d73cc08001ad1fda16795bd8bf6f3d4 /include
parent5a00661bd6a1bfe82656c51d23a3ac6be99602a2 (diff)
parentdaa3753a04699724d2cfe824ac1f5a266d643a05 (diff)
downloadframeworks_base-0632b35b6828cd4324b3d218c2e38f895e819aad.zip
frameworks_base-0632b35b6828cd4324b3d218c2e38f895e819aad.tar.gz
frameworks_base-0632b35b6828cd4324b3d218c2e38f895e819aad.tar.bz2
Merge "Improve handling of built-in keyboard." into jb-dev
Diffstat (limited to 'include')
-rw-r--r--include/androidfw/Input.h31
-rw-r--r--include/androidfw/InputDevice.h4
2 files changed, 3 insertions, 32 deletions
diff --git a/include/androidfw/Input.h b/include/androidfw/Input.h
index 044f2bf..601a169 100644
--- a/include/androidfw/Input.h
+++ b/include/androidfw/Input.h
@@ -157,37 +157,6 @@ enum {
};
/*
- * Describes the basic configuration of input devices that are present.
- */
-struct InputConfiguration {
- enum {
- TOUCHSCREEN_UNDEFINED = 0,
- TOUCHSCREEN_NOTOUCH = 1,
- TOUCHSCREEN_STYLUS = 2,
- TOUCHSCREEN_FINGER = 3
- };
-
- enum {
- KEYBOARD_UNDEFINED = 0,
- KEYBOARD_NOKEYS = 1,
- KEYBOARD_QWERTY = 2,
- KEYBOARD_12KEY = 3
- };
-
- enum {
- NAVIGATION_UNDEFINED = 0,
- NAVIGATION_NONAV = 1,
- NAVIGATION_DPAD = 2,
- NAVIGATION_TRACKBALL = 3,
- NAVIGATION_WHEEL = 4
- };
-
- int32_t touchScreen;
- int32_t keyboard;
- int32_t navigation;
-};
-
-/*
* Pointer coordinate data.
*/
struct PointerCoords {
diff --git a/include/androidfw/InputDevice.h b/include/androidfw/InputDevice.h
index d6ecbf0..1aecf80 100644
--- a/include/androidfw/InputDevice.h
+++ b/include/androidfw/InputDevice.h
@@ -67,7 +67,7 @@ public:
};
void initialize(int32_t id, int32_t generation, const InputDeviceIdentifier& identifier,
- const String8& alias);
+ const String8& alias, bool isExternal);
inline int32_t getId() const { return mId; }
inline int32_t getGeneration() const { return mGeneration; }
@@ -76,6 +76,7 @@ public:
inline const String8& getDisplayName() const {
return mAlias.isEmpty() ? mIdentifier.name : mAlias;
}
+ inline bool isExternal() const { return mIsExternal; }
inline uint32_t getSources() const { return mSources; }
const MotionRange* getMotionRange(int32_t axis, uint32_t source) const;
@@ -108,6 +109,7 @@ private:
int32_t mGeneration;
InputDeviceIdentifier mIdentifier;
String8 mAlias;
+ bool mIsExternal;
uint32_t mSources;
int32_t mKeyboardType;
sp<KeyCharacterMap> mKeyCharacterMap;