commit | fc63d3995a0ebff5dad757e24077fb8c4ac5065b | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@google.com> | Thu Mar 22 23:04:46 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 22 23:04:46 2018 |
tree | 08c3898102076dbac96725b9c6cbd331f0b7cd0b | |
parent | d32dcf8e64be4ba77940afd6adef3a4c7cab0cec [diff] |
[Mac] Fix long haptic effects on Xbox One gamepads On Mac, Chrome includes an internal driver for Xbox 360 and Xbox One gamepads connected over USB. Vibration effects are issued to these devices over USB HID using a vendor-specific protocol. The Xbox One rumble packet specifies a duration for the effect. Chrome always sets this to the maximum value and instead issues a new rumble packet to end the effect. However, the duration of an Xbox One effect with the maximum duration is approximately 3 seconds, causing longer effects to end earlier than intended. To support longer effects, the internal driver will now issue a second rumble packet when needed. BUG=749295 Change-Id: I25313715912f1a77b6fabc9071d2e77b804e3d8f Reviewed-on: https://chromium-review.googlesource.com/964991 Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#545281}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .