summaryrefslogtreecommitdiff
path: root/libs/androidfw/InputDevice.cpp
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2012-05-01 18:39:00 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-05-01 18:39:00 -0700
commit0632b35b6828cd4324b3d218c2e38f895e819aad (patch)
tree671bc68d2d73cc08001ad1fda16795bd8bf6f3d4 /libs/androidfw/InputDevice.cpp
parent5a00661bd6a1bfe82656c51d23a3ac6be99602a2 (diff)
parentdaa3753a04699724d2cfe824ac1f5a266d643a05 (diff)
Merge "Improve handling of built-in keyboard." into jb-dev
Diffstat (limited to 'libs/androidfw/InputDevice.cpp')
-rw-r--r--libs/androidfw/InputDevice.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/androidfw/InputDevice.cpp b/libs/androidfw/InputDevice.cpp
index 928157f0bcfa..fe891cb2879a 100644
--- a/libs/androidfw/InputDevice.cpp
+++ b/libs/androidfw/InputDevice.cpp
@@ -127,12 +127,12 @@ String8 getInputDeviceConfigurationFilePathByName(
// --- InputDeviceInfo ---
InputDeviceInfo::InputDeviceInfo() {
- initialize(-1, -1, InputDeviceIdentifier(), String8());
+ initialize(-1, -1, InputDeviceIdentifier(), String8(), false);
}
InputDeviceInfo::InputDeviceInfo(const InputDeviceInfo& other) :
mId(other.mId), mGeneration(other.mGeneration), mIdentifier(other.mIdentifier),
- mAlias(other.mAlias), mSources(other.mSources),
+ mAlias(other.mAlias), mIsExternal(other.mIsExternal), mSources(other.mSources),
mKeyboardType(other.mKeyboardType),
mKeyCharacterMap(other.mKeyCharacterMap),
mHasVibrator(other.mHasVibrator),
@@ -143,11 +143,12 @@ InputDeviceInfo::~InputDeviceInfo() {
}
void InputDeviceInfo::initialize(int32_t id, int32_t generation,
- const InputDeviceIdentifier& identifier, const String8& alias) {
+ const InputDeviceIdentifier& identifier, const String8& alias, bool isExternal) {
mId = id;
mGeneration = generation;
mIdentifier = identifier;
mAlias = alias;
+ mIsExternal = isExternal;
mSources = 0;
mKeyboardType = AINPUT_KEYBOARD_TYPE_NONE;
mHasVibrator = false;