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

Unified Diff: ui/events/event_constants.h

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/event_constants.h
diff --git a/ui/events/event_constants.h b/ui/events/event_constants.h
index c7736622783d2335da227a73f470beeaa3012a38..2bac6b940cafbc4c0c0d1100d16d448c5fe24776 100644
--- a/ui/events/event_constants.h
+++ b/ui/events/event_constants.h
@@ -39,6 +39,12 @@ enum EventType {
ET_POINTER_WHEEL_CHANGED,
ET_POINTER_CAPTURE_CHANGED,
+ // GamepadEvent types
+ ET_GAMEPAD_BTN_PRESSED,
+ ET_GAMEPAD_BTN_RELEASED,
+ ET_GAMEPAD_ABS_MOVED,
+ ET_GAMEPAD_FRAME,
sadrul 2017/04/10 18:14:05 What's GAMEPAD_FRAME event?
jkwang 2017/04/10 18:19:08 It's essentially a successful sync (syn_reported i
dtapuska 2017/04/10 19:13:35 Is this mapped to a vsync signal?
jkwang 2017/04/10 20:07:47 Sorry, I am not aware of vsync signal. Could you p
sadrul 2017/04/12 18:03:58 OK. Can this be handled from the evdev-handler? Fo
jkwang 2017/04/12 20:51:55 Yeah. I took a look at how Touch EV_SYN is handled
sadrul 2017/04/12 21:26:32 The spec says "A client is expected to accumulate
jkwang 2017/04/12 21:41:19 Sorry, there is no draft CL yet. But it will be ve
+
// GestureEvent types
ET_GESTURE_SCROLL_BEGIN,
ET_GESTURE_TYPE_START = ET_GESTURE_SCROLL_BEGIN,

Powered by Google App Engine
This is Rietveld 408576698