diff options
| author | 2022-02-19 00:57:47 -0700 | |
|---|---|---|
| committer | 2022-02-19 00:57:47 -0700 | |
| commit | 298469526501b3bd576ff1ab53d089097506a2e7 (patch) | |
| tree | 269412e42ab54fdef3132c77f173a098867aceb7 /src/core/hid/emulated_controller.h | |
| parent | Merge pull request #7900 from german77/enter (diff) | |
| parent | nfp: Allow files without password data (diff) | |
| download | yuzu-298469526501b3bd576ff1ab53d089097506a2e7.tar.gz yuzu-298469526501b3bd576ff1ab53d089097506a2e7.tar.xz yuzu-298469526501b3bd576ff1ab53d089097506a2e7.zip | |
Merge pull request #7867 from german77/amiibo
nfp: Improve amiibo support
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index d8642c5b3..aa52f9572 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -299,16 +299,23 @@ public: | |||
| 299 | 299 | ||
| 300 | /** | 300 | /** |
| 301 | * Sends a specific vibration to the output device | 301 | * Sends a specific vibration to the output device |
| 302 | * @return returns true if vibration had no errors | 302 | * @return true if vibration had no errors |
| 303 | */ | 303 | */ |
| 304 | bool SetVibration(std::size_t device_index, VibrationValue vibration); | 304 | bool SetVibration(std::size_t device_index, VibrationValue vibration); |
| 305 | 305 | ||
| 306 | /** | 306 | /** |
| 307 | * Sends a small vibration to the output device | 307 | * Sends a small vibration to the output device |
| 308 | * @return returns true if SetVibration was successfull | 308 | * @return true if SetVibration was successfull |
| 309 | */ | 309 | */ |
| 310 | bool TestVibration(std::size_t device_index); | 310 | bool TestVibration(std::size_t device_index); |
| 311 | 311 | ||
| 312 | /** | ||
| 313 | * Sets the desired data to be polled from a controller | ||
| 314 | * @param polling_mode type of input desired buttons, gyro, nfc, ir, etc. | ||
| 315 | * @return true if SetPollingMode was successfull | ||
| 316 | */ | ||
| 317 | bool SetPollingMode(Common::Input::PollingMode polling_mode); | ||
| 318 | |||
| 312 | /// Returns the led pattern corresponding to this emulated controller | 319 | /// Returns the led pattern corresponding to this emulated controller |
| 313 | LedPattern GetLedPattern() const; | 320 | LedPattern GetLedPattern() const; |
| 314 | 321 | ||