Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |