summaryrefslogtreecommitdiffstats
path: root/src/input_common/main.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-07-23 02:59:26 +0200
committergerman77 <juangerman-13@hotmail.com>2021-08-08 06:11:23 +0200
commit48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a (patch)
tree6cac4bd2f23cba7a8c2bcee29270893d60179752 /src/input_common/main.cpp
parentMerge pull request #6830 from ameerj/nvdec-unimpld-codec (diff)
downloadyuzu-48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a.tar
yuzu-48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a.tar.gz
yuzu-48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a.tar.bz2
yuzu-48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a.tar.lz
yuzu-48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a.tar.xz
yuzu-48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a.tar.zst
yuzu-48b6d41f1b95cd61d6c60c3db1a5b89ac788a66a.zip
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r--src/input_common/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp
index 8de3d4520..ff23230f0 100644
--- a/src/input_common/main.cpp
+++ b/src/input_common/main.cpp
@@ -304,10 +304,10 @@ std::vector<std::unique_ptr<Polling::DevicePoller>> InputSubsystem::GetPollers([
}
std::string GenerateKeyboardParam(int key_code) {
- Common::ParamPackage param{
- {"engine", "keyboard"},
- {"code", std::to_string(key_code)},
- };
+ Common::ParamPackage param;
+ param.Set("engine", "keyboard");
+ param.Set("code", key_code);
+ param.Set("toggle", false);
return param.Serialize();
}