summaryrefslogtreecommitdiff
path: root/modules/input/evdev/InputDeviceManager.cpp
diff options
context:
space:
mode:
authorTim Kilbourn <tkilbourn@google.com>2015-05-04 17:26:30 -0700
committerTim Kilbourn <tkilbourn@google.com>2015-06-09 11:16:04 -0700
commit4f3145d75f5dfc87f07f8ddf6143ba77966f35e4 (patch)
tree11169268d5ca497a874df298b5ecb85d5605cf0d /modules/input/evdev/InputDeviceManager.cpp
parent61809ac218b9598fc2a540e235f6d4787604938f (diff)
Initial InputMappers for evdev input HAL.
The previous design of the InputHost wrapper classes made it very painful to do testing, so this change also reverts to a more classical C++ pattern for non-copyable objects. The InputHost classes still simply call through to the input_host_t and callbacks as before. Updated unittests to use gmock for mocking the InputHost interactions. Change-Id: I4b70df2c89ed48af77446b8f5b87a4bde94510bf
Diffstat (limited to 'modules/input/evdev/InputDeviceManager.cpp')
-rw-r--r--modules/input/evdev/InputDeviceManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/input/evdev/InputDeviceManager.cpp b/modules/input/evdev/InputDeviceManager.cpp
index f21d6d15..46c9dfb7 100644
--- a/modules/input/evdev/InputDeviceManager.cpp
+++ b/modules/input/evdev/InputDeviceManager.cpp
@@ -43,7 +43,8 @@ void InputDeviceManager::onDeviceRemoved(const std::shared_ptr<InputDeviceNode>&
return;
}
// TODO: tell the InputDevice and InputDeviceNode that they are being
- // removed so they can run any cleanup.
+ // removed so they can run any cleanup, including unregistering from the
+ // host.
mDevices.erase(node);
}