summaryrefslogtreecommitdiffstats
path: root/ui/events/devices/input_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/events/devices/input_device.cc')
-rw-r--r--ui/events/devices/input_device.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/events/devices/input_device.cc b/ui/events/devices/input_device.cc
index d08aa51..11058e7 100644
--- a/ui/events/devices/input_device.cc
+++ b/ui/events/devices/input_device.cc
@@ -15,8 +15,16 @@ InputDevice::InputDevice()
: id(kInvalidId), type(InputDeviceType::INPUT_DEVICE_UNKNOWN) {
}
-InputDevice::InputDevice(int id, InputDeviceType type)
- : id(id), type(type) {
+InputDevice::InputDevice(int id, InputDeviceType type, const std::string& name)
+ : id(id), type(type), name(name), vendor_id(0), product_id(0) {
+}
+
+InputDevice::InputDevice(int id,
+ InputDeviceType type,
+ const std::string& name,
+ uint16_t vendor,
+ uint16_t product)
+ : id(id), type(type), name(name), vendor_id(vendor), product_id(product) {
}
InputDevice::~InputDevice() {