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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h" 5 #include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 KeyEventParams::KeyEventParams(int device_id, 9 KeyEventParams::KeyEventParams(int device_id,
10 unsigned int code, 10 unsigned int code,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 type(type), 127 type(type),
128 location(location), 128 location(location),
129 pointer_details(details), 129 pointer_details(details),
130 timestamp(timestamp) {} 130 timestamp(timestamp) {}
131 131
132 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default; 132 TouchEventParams::TouchEventParams(const TouchEventParams& other) = default;
133 133
134 TouchEventParams::~TouchEventParams() { 134 TouchEventParams::~TouchEventParams() {
135 } 135 }
136 136
137 GamepadEventParams::GamepadEventParams(int device_id,
138 EventType type,
139 double value,
140 uint16_t code,
141 const base::TimeTicks timestamp)
142 : device_id(device_id),
143 type(type),
144 value(value),
145 code(code),
146 timestamp(timestamp) {}
147
137 } // namspace ui 148 } // namspace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698