Commit cbf3d256 authored by Tetsui Ohkubo's avatar Tetsui Ohkubo Committed by Commit Bot

exo: gamepad: Send device version to ARC

This is a follow-up change of https://crrev.com/c/1602193 and
https://crrev.com/c/1599758.

After the first change landed, gamepad vendor ID and product ID are
exposed to ARC. However, device version wasn't included because the
field wasn't available in ui::InputDevice. After the second change, now
the information is available.

This is a part of the effort to improve ARC Gampad compatibility.
Design doc: go/arc-improved-gamepad

TEST=manual(--enable-features=ExoRawGamepadInfo to /etc/chrome_dev.conf)
BUG=b:130597086

Change-Id: Ie2def04cafaa52295e8e0d2e75313b1bb5f8c314
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1610272Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659613}
parent 9072857d
...@@ -144,13 +144,10 @@ class WaylandGamingSeatDelegate : public GamingSeatDelegate { ...@@ -144,13 +144,10 @@ class WaylandGamingSeatDelegate : public GamingSeatDelegate {
&WaylandGamepadDelegate::ResetGamepadResource); &WaylandGamepadDelegate::ResetGamepadResource);
if (base::FeatureList::IsEnabled(kRawGamepadInfoFeature)) { if (base::FeatureList::IsEnabled(kRawGamepadInfoFeature)) {
// The version is temporarily set to 0 because the information is not
// available in ui::InputDevice.
// TODO(tetsui): Add version field to ui::InputDevice
zcr_gaming_seat_v2_send_gamepad_added_with_device_info( zcr_gaming_seat_v2_send_gamepad_added_with_device_info(
gaming_seat_resource_, gamepad_resource, device.name.c_str(), gaming_seat_resource_, gamepad_resource, device.name.c_str(),
GetGamepadBusType(device.type), device.vendor_id, device.product_id, GetGamepadBusType(device.type), device.vendor_id, device.product_id,
/*version=*/0); device.version);
// TODO(tetsui): Send joystick motion range. // TODO(tetsui): Send joystick motion range.
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment