summaryrefslogtreecommitdiffstats
path: root/src/input_common/main.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-08 11:44:42 +0200
committerGitHub <noreply@github.com>2021-08-08 11:44:42 +0200
commitb023413c98ceba2bc640f940d272f9d7c70f4139 (patch)
tree1f842bf935fbbf49d646d7e58015ebff29aa6aa2 /src/input_common/main.cpp
parentMerge pull request #6817 from gidoly/patch-1 (diff)
parentinput_common: Improve SDL joystick and hide toggle option (diff)
downloadyuzu-b023413c98ceba2bc640f940d272f9d7c70f4139.tar
yuzu-b023413c98ceba2bc640f940d272f9d7c70f4139.tar.gz
yuzu-b023413c98ceba2bc640f940d272f9d7c70f4139.tar.bz2
yuzu-b023413c98ceba2bc640f940d272f9d7c70f4139.tar.lz
yuzu-b023413c98ceba2bc640f940d272f9d7c70f4139.tar.xz
yuzu-b023413c98ceba2bc640f940d272f9d7c70f4139.tar.zst
yuzu-b023413c98ceba2bc640f940d272f9d7c70f4139.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();
}