diff options
| author | 2021-01-10 22:09:56 -0700 | |
|---|---|---|
| committer | 2021-01-10 22:09:56 -0700 | |
| commit | 7a3c884e39fccfbb498b855080bffabc9ce2e7f1 (patch) | |
| tree | 5056f9406dec188439cb0deb87603498243a9412 /src/core/frontend/input.h | |
| parent | More forgetting... duh (diff) | |
| parent | Merge pull request #5229 from Morph1984/fullscreen-opt (diff) | |
| download | yuzu-7a3c884e39fccfbb498b855080bffabc9ce2e7f1.tar.gz yuzu-7a3c884e39fccfbb498b855080bffabc9ce2e7f1.tar.xz yuzu-7a3c884e39fccfbb498b855080bffabc9ce2e7f1.zip | |
Merge remote-tracking branch 'upstream/master' into int-flags
Diffstat (limited to 'src/core/frontend/input.h')
| -rw-r--r-- | src/core/frontend/input.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index 9da0d2829..de51a754e 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h | |||
| @@ -30,7 +30,12 @@ public: | |||
| 30 | virtual StatusType GetStatus() const { | 30 | virtual StatusType GetStatus() const { |
| 31 | return {}; | 31 | return {}; |
| 32 | } | 32 | } |
| 33 | virtual bool GetAnalogDirectionStatus(AnalogDirection direction) const { | 33 | virtual bool GetAnalogDirectionStatus([[maybe_unused]] AnalogDirection direction) const { |
| 34 | return {}; | ||
| 35 | } | ||
| 36 | virtual bool SetRumblePlay([[maybe_unused]] f32 amp_low, [[maybe_unused]] f32 freq_low, | ||
| 37 | [[maybe_unused]] f32 amp_high, | ||
| 38 | [[maybe_unused]] f32 freq_high) const { | ||
| 34 | return {}; | 39 | return {}; |
| 35 | } | 40 | } |
| 36 | }; | 41 | }; |
| @@ -119,6 +124,13 @@ using ButtonDevice = InputDevice<bool>; | |||
| 119 | using AnalogDevice = InputDevice<std::tuple<float, float>>; | 124 | using AnalogDevice = InputDevice<std::tuple<float, float>>; |
| 120 | 125 | ||
| 121 | /** | 126 | /** |
| 127 | * A vibration device is an input device that returns an unsigned byte as status. | ||
| 128 | * It represents whether the vibration device supports vibration or not. | ||
| 129 | * If the status returns 1, it supports vibration. Otherwise, it does not support vibration. | ||
| 130 | */ | ||
| 131 | using VibrationDevice = InputDevice<u8>; | ||
| 132 | |||
| 133 | /** | ||
| 122 | * A motion status is an object that returns a tuple of accelerometer state vector, | 134 | * A motion status is an object that returns a tuple of accelerometer state vector, |
| 123 | * gyroscope state vector, rotation state vector and orientation state matrix. | 135 | * gyroscope state vector, rotation state vector and orientation state matrix. |
| 124 | * | 136 | * |
| @@ -151,10 +163,15 @@ using MotionStatus = std::tuple<Common::Vec3<float>, Common::Vec3<float>, Common | |||
| 151 | using MotionDevice = InputDevice<MotionStatus>; | 163 | using MotionDevice = InputDevice<MotionStatus>; |
| 152 | 164 | ||
| 153 | /** | 165 | /** |
| 154 | * A touch device is an input device that returns a tuple of two floats and a bool. The floats are | 166 | * A touch status is an object that returns a tuple of two floats and a bool. The floats are |
| 155 | * x and y coordinates in the range 0.0 - 1.0, and the bool indicates whether it is pressed. | 167 | * x and y coordinates in the range 0.0 - 1.0, and the bool indicates whether it is pressed. |
| 156 | */ | 168 | */ |
| 157 | using TouchDevice = InputDevice<std::tuple<float, float, bool>>; | 169 | using TouchStatus = std::tuple<float, float, bool>; |
| 170 | |||
| 171 | /** | ||
| 172 | * A touch device is an input device that returns a touch status object | ||
| 173 | */ | ||
| 174 | using TouchDevice = InputDevice<TouchStatus>; | ||
| 158 | 175 | ||
| 159 | /** | 176 | /** |
| 160 | * A mouse device is an input device that returns a tuple of two floats and four ints. | 177 | * A mouse device is an input device that returns a tuple of two floats and four ints. |