diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-10-20 19:55:25 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-11-16 05:33:20 +0100 |
commit | e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd (patch) | |
tree | 344b40a5a874cb188c6e7aa7d1622c77a215090d /src/core/frontend/input.h | |
parent | configure_input: Add per-player vibration (diff) | |
download | yuzu-e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd.tar yuzu-e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd.tar.gz yuzu-e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd.tar.bz2 yuzu-e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd.tar.lz yuzu-e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd.tar.xz yuzu-e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd.tar.zst yuzu-e9e1876e821b8bd1bb5c8254ec93e2cc479e16dd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/frontend/input.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index fb2ce2514..25ac5af46 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h @@ -122,6 +122,13 @@ using ButtonDevice = InputDevice<bool>; using AnalogDevice = InputDevice<std::tuple<float, float>>; /** + * A vibration device is an input device that returns an unsigned byte as status. + * It represents whether the vibration device supports vibration or not. + * If the status returns 1, it supports vibration. Otherwise, it does not support vibration. + */ +using VibrationDevice = InputDevice<u8>; + +/** * A motion status is an object that returns a tuple of accelerometer state vector, * gyroscope state vector, rotation state vector and orientation state matrix. * |