Chromium Code Reviews| Index: ui/events/ozone/evdev/event_device_test_util.cc |
| diff --git a/ui/events/ozone/evdev/event_device_test_util.cc b/ui/events/ozone/evdev/event_device_test_util.cc |
| index d1d7d249751cc9aa0c721f1089bcb5c93db04833..1c5934789d6f11527f990756b004ba475f752653 100644 |
| --- a/ui/events/ozone/evdev/event_device_test_util.cc |
| +++ b/ui/events/ozone/evdev/event_device_test_util.cc |
| @@ -79,6 +79,40 @@ bool ParseBitfield(const std::string& bitfield, |
| } // namespace |
| +// Caputered from xbox 360 gamepad. |
| +const DeviceAbsoluteAxis kLinkGamepadAbsAxes[] = { |
| + {ABS_X, {0, -32768, 32767, 16, 128}}, |
| + {ABS_Y, {0, -32768, 32767, 16, 128}}, |
| + {ABS_Z, {0, 0, 255, 0, 0}}, |
| + {ABS_RX, {0, -32768, 32767, 16, 128}}, |
| + {ABS_RY, {0, -32768, 32767, 16, 128}}, |
| + {ABS_RZ, {0, 0, 255, 0, 0}}, |
| + {ABS_HAT0X, {0, -1, 1, 0, 0}}, |
| + {ABS_HAT0Y, {0, -1, 1, 0, 0}}}; |
| +const DeviceCapabilities kLinkGamepad = { |
|
spang
2017/04/13 00:52:19
"Link" here is the board name for the Chromebook P
jkwang
2017/04/19 19:42:23
Done.
|
| + /* path */ |
| + "/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.2/1-2.2:1.0/" |
| + "input/input38/event11", |
| + /* name */ "Microsoft X-Box 360 pad", |
| + /* phys */ "usb-0000:00:14.0-2.2/input0", |
| + /* uniq */ "", |
| + /* bustype */ "0011", |
| + /* vendor */ "045e", |
| + /* product */ "028e", |
| + /* version */ "0114", |
| + /* prop */ "0", |
| + /* ev */ "20000b", |
| + /* key */ "7cdb000000000000 0 0 0 0", |
| + /* rel */ "0", |
| + /* abs */ "3003f", |
| + /* msc */ "0", |
| + /* sw */ "0", |
| + /* led */ "0", |
| + /* ff */ "0", |
| + kLinkGamepadAbsAxes, |
| + arraysize(kLinkGamepadAbsAxes), |
| +}; |
| + |
| // Captured from Chromebook Pixel. |
| const DeviceCapabilities kLinkKeyboard = { |
| /* path */ "/sys/devices/platform/i8042/serio0/input/input6/event6", |