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

Unified Diff: ui/events/ozone/events_ozone.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/events_ozone.cc
diff --git a/ui/events/ozone/events_ozone.cc b/ui/events/ozone/events_ozone.cc
index 1200cb3de612910bb85eb26e38e1d1ce3e3ab6b5..d07cf36056d874948cff1118faf27b733c47f971 100644
--- a/ui/events/ozone/events_ozone.cc
+++ b/ui/events/ozone/events_ozone.cc
@@ -30,6 +30,8 @@ void DispatchEventFromNativeUiEvent(const base::NativeEvent& native_event,
callback.Run(native_ui_event);
// TODO(mohsen): Use the same pattern for scroll/touch/wheel events.
// Apparently, there is no need for them to wrap the |native_event|.
+ } else if (native_ui_event->IsGamepadEvent()) {
+ callback.Run(native_ui_event);
} else {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698