summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-11-28 15:11:56 +0100
committerLioncash <mathew1800@gmail.com>2022-11-28 15:11:58 +0100
commit7f42432f4205185f474733335c8a4eef26992454 (patch)
tree9360aa8516390fabc700e8acbf309f48cf4d59d1 /src
parentMerge pull request #9325 from german77/default_by_default (diff)
downloadyuzu-7f42432f4205185f474733335c8a4eef26992454.tar
yuzu-7f42432f4205185f474733335c8a4eef26992454.tar.gz
yuzu-7f42432f4205185f474733335c8a4eef26992454.tar.bz2
yuzu-7f42432f4205185f474733335c8a4eef26992454.tar.lz
yuzu-7f42432f4205185f474733335c8a4eef26992454.tar.xz
yuzu-7f42432f4205185f474733335c8a4eef26992454.tar.zst
yuzu-7f42432f4205185f474733335c8a4eef26992454.zip
Diffstat (limited to '')
-rw-r--r--src/common/input.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/input.h b/src/common/input.h
index cb30b7254..4030ad2e5 100644
--- a/src/common/input.h
+++ b/src/common/input.h
@@ -417,12 +417,12 @@ std::unique_ptr<InputDeviceType> CreateDeviceFromString(const std::string& param
}
/**
- * Create an input device from given paramters.
+ * Create an input device from given parameters.
* @tparam InputDeviceType the type of input devices to create
- * @param A ParamPackage that contains all parameters for creating the device
+ * @param package A ParamPackage that contains all parameters for creating the device
*/
template <typename InputDeviceType>
-std::unique_ptr<InputDeviceType> CreateDevice(const Common::ParamPackage package) {
+std::unique_ptr<InputDeviceType> CreateDevice(const ParamPackage& package) {
const std::string engine = package.Get("engine", "null");
const auto& factory_list = Impl::FactoryList<InputDeviceType>::list;
const auto pair = factory_list.find(engine);