| 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..82be092ed3369951f73d3368c19b259538ff8ea1 100644
|
| --- a/ui/events/ozone/evdev/event_device_test_util.cc
|
| +++ b/ui/events/ozone/evdev/event_device_test_util.cc
|
| @@ -79,6 +79,41 @@ bool ParseBitfield(const std::string& bitfield,
|
|
|
| } // namespace
|
|
|
| +// Caputered from xbox 360 gamepad.
|
| +const DeviceAbsoluteAxis kXboxGamepadAbsAxes[] = {
|
| + {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 kXboxGamepad = {
|
| + /* 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",
|
| + kXboxGamepadAbsAxes,
|
| + arraysize(kXboxGamepadAbsAxes),
|
| +};
|
| +
|
| // Captured from Chromebook Pixel.
|
| const DeviceCapabilities kLinkKeyboard = {
|
| /* path */ "/sys/devices/platform/i8042/serio0/input/input6/event6",
|
|
|