commit | 3927f87f2cdf1d2184772a80114be5a9aaa064c6 | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@google.com> | Tue Jan 02 19:18:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 03 03:24:00 2018 |
tree | 21f9859f430b1a36ad5de8044932bfdc3f37afb7 | |
parent | 6ee08941f41e41e36d868c946f40139bb5e9a130 [diff] |
Add a base Dualshock4 controller implementation Haptics on Dualshock4 devices are typically not supported by OS-level haptics APIs, so in order to support vibration effects on these devices we issue device-specific reports using the raw HID protocol. Dualshock4ControllerBase implements the common logic for creating the report buffer from the vibration intensity values. Users should implement WriteOutputReport to provide the OS-specific logic for sending the report to the device. BUG=749295 Change-Id: I742316f385235b44c0658dd9e571fa73cf4f496e Reviewed-on: https://chromium-review.googlesource.com/810053 Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#526608}
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 .