summaryrefslogtreecommitdiffstats
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2021-12-15 02:10:39 +0100
committerGitHub <noreply@github.com>2021-12-15 02:10:39 +0100
commit5e732e7aecc38e863674120ee28842a719f35896 (patch)
tree917f7c75447bc11f36778d1af4fced7e8fcef80c /src/core/hid/emulated_controller.h
parentMerge pull request #7577 from v1993/patch-2 (diff)
parentcommon/input: Avoid numerous large copies of CallbackStatus (diff)
downloadyuzu-5e732e7aecc38e863674120ee28842a719f35896.tar
yuzu-5e732e7aecc38e863674120ee28842a719f35896.tar.gz
yuzu-5e732e7aecc38e863674120ee28842a719f35896.tar.bz2
yuzu-5e732e7aecc38e863674120ee28842a719f35896.tar.lz
yuzu-5e732e7aecc38e863674120ee28842a719f35896.tar.xz
yuzu-5e732e7aecc38e863674120ee28842a719f35896.tar.zst
yuzu-5e732e7aecc38e863674120ee28842a719f35896.zip
Diffstat (limited to '')
-rw-r--r--src/core/hid/emulated_controller.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index 425b3e7c4..e42aafebc 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -328,35 +328,38 @@ private:
* @param callback A CallbackStatus containing the button status
* @param index Button ID of the to be updated
*/
- void SetButton(Common::Input::CallbackStatus callback, std::size_t index, Common::UUID uuid);
+ void SetButton(const Common::Input::CallbackStatus& callback, std::size_t index,
+ Common::UUID uuid);
/**
* Updates the analog stick status of the controller
* @param callback A CallbackStatus containing the analog stick status
* @param index stick ID of the to be updated
*/
- void SetStick(Common::Input::CallbackStatus callback, std::size_t index, Common::UUID uuid);
+ void SetStick(const Common::Input::CallbackStatus& callback, std::size_t index,
+ Common::UUID uuid);
/**
* Updates the trigger status of the controller
* @param callback A CallbackStatus containing the trigger status
* @param index trigger ID of the to be updated
*/
- void SetTrigger(Common::Input::CallbackStatus callback, std::size_t index, Common::UUID uuid);
+ void SetTrigger(const Common::Input::CallbackStatus& callback, std::size_t index,
+ Common::UUID uuid);
/**
* Updates the motion status of the controller
* @param callback A CallbackStatus containing gyro and accelerometer data
* @param index motion ID of the to be updated
*/
- void SetMotion(Common::Input::CallbackStatus callback, std::size_t index);
+ void SetMotion(const Common::Input::CallbackStatus& callback, std::size_t index);
/**
* Updates the battery status of the controller
* @param callback A CallbackStatus containing the battery status
* @param index Button ID of the to be updated
*/
- void SetBattery(Common::Input::CallbackStatus callback, std::size_t index);
+ void SetBattery(const Common::Input::CallbackStatus& callback, std::size_t index);
/**
* Triggers a callback that something has changed on the controller status