Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: ui/events/ozone/evdev/device_event_dispatcher_evdev.cc

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
index a299af3e3495e9905c7eaf3c5b04ee862e35af84..7a11859a1a117a998acbe267966f143d90401f10 100644
--- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
@@ -134,4 +134,15 @@ TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
TouchEventParams::~TouchEventParams() {
}
+GamepadEventParams::GamepadEventParams(int device_id,
+ EventType type,
+ double value,
+ uint16_t code,
+ const base::TimeTicks timestamp)
+ : device_id(device_id),
+ type(type),
+ value(value),
+ code(code),
+ timestamp(timestamp) {}
+
} // namspace ui

Powered by Google App Engine
This is Rietveld 408576698