diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-05 09:23:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-05 09:23:47 -0400 |
| commit | ef7d44e24313d531f035026510fb9f156002edff (patch) | |
| tree | b422a9ec97d2feb275dd0de3419f8ab2ed9734cb /src/core/hid/emulated_controller.h | |
| parent | f71140fbd96cbf61fc1a59160af398c118d1b0d6 (diff) | |
| parent | b41006004be8c0ba8d4464f3da20d88631f19c79 (diff) | |
Merge pull request #11006 from german77/nfc_nfc
service: nfc: Ensure controller is in the correct mode
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index d511e5fac..88d77db8d 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h @@ -143,6 +143,8 @@ struct ControllerStatus { CameraState camera_state{}; RingSensorForce ring_analog_state{}; NfcState nfc_state{}; + Common::Input::PollingMode left_polling_mode{}; + Common::Input::PollingMode right_polling_mode{}; }; enum class ControllerTriggerType { @@ -370,6 +372,12 @@ public: */ Common::Input::DriverResult SetPollingMode(EmulatedDeviceIndex device_index, Common::Input::PollingMode polling_mode); + /** + * Get the current polling mode from a controller + * @param device_index index of the controller to set the polling mode + * @return current polling mode + */ + Common::Input::PollingMode GetPollingMode(EmulatedDeviceIndex device_index) const; /** * Sets the desired camera format to be polled from a controller |
