summaryrefslogtreecommitdiffstats
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-07-03 03:21:16 +0200
committergerman77 <juangerman-13@hotmail.com>2023-07-03 03:21:16 +0200
commit9cd698e8ad584a199048f072ed65986ee10ba31a (patch)
tree2959ccd4fd535565d4b7aa28d289ca3ecce461fa /src/core/hid/emulated_controller.h
parentMerge pull request #10998 from Morph1984/qt-stop-messing-with-me (diff)
downloadyuzu-9cd698e8ad584a199048f072ed65986ee10ba31a.tar
yuzu-9cd698e8ad584a199048f072ed65986ee10ba31a.tar.gz
yuzu-9cd698e8ad584a199048f072ed65986ee10ba31a.tar.bz2
yuzu-9cd698e8ad584a199048f072ed65986ee10ba31a.tar.lz
yuzu-9cd698e8ad584a199048f072ed65986ee10ba31a.tar.xz
yuzu-9cd698e8ad584a199048f072ed65986ee10ba31a.tar.zst
yuzu-9cd698e8ad584a199048f072ed65986ee10ba31a.zip
Diffstat (limited to 'src/core/hid/emulated_controller.h')
-rw-r--r--src/core/hid/emulated_controller.h8
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