• Merissa Tan's avatar
    Reland "Add gamepad rumble support in Exo and Wayland." · 2b79cc9c
    Merissa Tan authored
    This reverts commit d5524bc1.
    
    Reason for revert: Fixed bug that was making arc.Gamepad fail. Manually tested to ensure arc.Gamepad is passing.
    
    Original change's description:
    > Revert "Add gamepad rumble support in Exo and Wayland."
    >
    > This reverts commit 047950bb.
    >
    > Reason for revert: failing arc.Gamepad
    >
    > Original change's description:
    > > Add gamepad rumble support in Exo and Wayland.
    > >
    > > - Add exo::Gamepad interface.
    > > - Add exo::GamepadObserver interface.
    > > - Add WaylandGamepadVibratorImpl to handle vibration and cancel
    > > vibration requests from the client.
    > > - Refactor WaylandGamingSeatDelegate so that WaylandGamepadDelegate
    > > handles all gamepad-specific events.
    > > - Add Wayland protocol to support gamepad rumble. The zcr_gamepad_vibrator_v2 interface is created when the server calls
    > > the vibrator_added event. The client can then trigger/disable vibration
    > > events on a gamepad vibrator through the interface.
    > >
    > > BUG=b:158686809
    > > TEST=Add unit tests in gamepad_unittest. All tests pass in
    > > exo_unittests.
    > >
    > > Change-Id: Ie4b1b3b5f9748f31846c54c97cb4f7c315d09a05
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2313976
    > > Commit-Queue: Merissa Tan <liyingtan@google.com>
    > > Auto-Submit: Merissa Tan <liyingtan@google.com>
    > > Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
    > > Cr-Commit-Position: refs/heads/master@{#798253}
    >
    > TBR=oshima@chromium.org,xutan@chromium.org,tetsui@chromium.org,prabirmsp@chromium.org,liyingtan@google.com
    >
    > Change-Id: I39d80057e7bcfda6bbfab5d2ea99d0d94a743aaf
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Bug: b:158686809
    > Bug: 1116682
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358690
    > Reviewed-by: Jun Mukai <mukai@chromium.org>
    > Commit-Queue: Jun Mukai <mukai@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#798400}
    
    Bug=b:158686809
    Test=Add unit tests in gamepad_unittest. All tests pass in exo_unittests. Manually tested arc.Gamepad Tast test.
    
    Change-Id: I094007035f7eb28e3130e3a1de207e4a85f6845d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359580Reviewed-by: default avatarJun Mukai <mukai@chromium.org>
    Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
    Commit-Queue: Merissa Tan <liyingtan@google.com>
    Auto-Submit: Merissa Tan <liyingtan@google.com>
    Cr-Commit-Position: refs/heads/master@{#798932}
    2b79cc9c
gamepad.h 4.22 KB