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

Side by Side Diff: ui/events/ozone/evdev/gamepad_event_converter_evdev.h

Issue 2899893003: Add generic mapping for gamepad (Closed)
Patch Set: Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef UI_EVENTS_OZONE_GAMEPAD_EVENT_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_GAMEPAD_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_GAMEPAD_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_GAMEPAD_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 }; 100 };
101 101
102 Axis axes_[ABS_CNT]; 102 Axis axes_[ABS_CNT];
103 103
104 // These values keeps the state of previous hat. 104 // These values keeps the state of previous hat.
105 bool last_hat_left_press_; 105 bool last_hat_left_press_;
106 bool last_hat_right_press_; 106 bool last_hat_right_press_;
107 bool last_hat_up_press_; 107 bool last_hat_up_press_;
108 bool last_hat_down_press_; 108 bool last_hat_down_press_;
109 109
110 GamepadMapper mapper_; 110 GamepadMapper* mapper_;
spang 2017/06/01 05:08:12 std::unique_ptr<>
jkwang 2017/06/02 22:03:51 Done.
111 111
112 // Input device file descriptor. 112 // Input device file descriptor.
113 ScopedInputDevice input_device_fd_; 113 ScopedInputDevice input_device_fd_;
114 114
115 // Callbacks for dispatching events. 115 // Callbacks for dispatching events.
116 DeviceEventDispatcherEvdev* dispatcher_; 116 DeviceEventDispatcherEvdev* dispatcher_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(GamepadEventConverterEvdev); 118 DISALLOW_COPY_AND_ASSIGN(GamepadEventConverterEvdev);
119 }; 119 };
120 120
121 } // namespace ui 121 } // namespace ui
122 122
123 #endif // UI_EVENTS_OZONE_GAMEPAD_EVENT_CONVERTER_EVDEV_H_ 123 #endif // UI_EVENTS_OZONE_GAMEPAD_EVENT_CONVERTER_EVDEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698