diff options
| author | 2021-10-11 00:43:11 -0500 | |
|---|---|---|
| committer | 2021-11-24 20:30:24 -0600 | |
| commit | 06a5ef5874144a70e30e577a83ba68d1dad79e78 (patch) | |
| tree | 867fa1153c7285c858cdb5bd7f60f08266532a88 /src/input_common/input_engine.h | |
| parent | core: Update input interpreter (diff) | |
| download | yuzu-06a5ef5874144a70e30e577a83ba68d1dad79e78.tar.gz yuzu-06a5ef5874144a70e30e577a83ba68d1dad79e78.tar.xz yuzu-06a5ef5874144a70e30e577a83ba68d1dad79e78.zip | |
core/hid: Add output devices
Diffstat (limited to 'src/input_common/input_engine.h')
| -rw-r--r-- | src/input_common/input_engine.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h index 86a8e00d8..8a953c382 100644 --- a/src/input_common/input_engine.h +++ b/src/input_common/input_engine.h | |||
| @@ -114,18 +114,24 @@ public: | |||
| 114 | // Disable configuring mode for mapping | 114 | // Disable configuring mode for mapping |
| 115 | void EndConfiguration(); | 115 | void EndConfiguration(); |
| 116 | 116 | ||
| 117 | // Sets rumble to a controller | ||
| 118 | virtual bool SetRumble([[maybe_unused]] const PadIdentifier& identifier, | ||
| 119 | [[maybe_unused]] const Input::VibrationStatus vibration) { | ||
| 120 | return false; | ||
| 121 | } | ||
| 122 | |||
| 123 | // Sets a led pattern for a controller | 117 | // Sets a led pattern for a controller |
| 124 | virtual void SetLeds([[maybe_unused]] const PadIdentifier& identifier, | 118 | virtual void SetLeds([[maybe_unused]] const PadIdentifier& identifier, |
| 125 | [[maybe_unused]] const Input::LedStatus led_status) { | 119 | [[maybe_unused]] const Input::LedStatus led_status) { |
| 126 | return; | 120 | return; |
| 127 | } | 121 | } |
| 128 | 122 | ||
| 123 | // Sets rumble to a controller | ||
| 124 | virtual Input::VibrationError SetRumble([[maybe_unused]] const PadIdentifier& identifier, | ||
| 125 | [[maybe_unused]] const Input::VibrationStatus vibration) { | ||
| 126 | return Input::VibrationError::NotSupported; | ||
| 127 | } | ||
| 128 | |||
| 129 | // Sets polling mode to a controller | ||
| 130 | virtual Input::PollingError SetPollingMode([[maybe_unused]] const PadIdentifier& identifier, | ||
| 131 | [[maybe_unused]] const Input::PollingMode vibration) { | ||
| 132 | return Input::PollingError::NotSupported; | ||
| 133 | } | ||
| 134 | |||
| 129 | // Returns the engine name | 135 | // Returns the engine name |
| 130 | [[nodiscard]] const std::string& GetEngineName() const; | 136 | [[nodiscard]] const std::string& GetEngineName() const; |
| 131 | 137 | ||