summaryrefslogtreecommitdiffstats
path: root/src/common/key_map.cpp
diff options
context:
space:
mode:
authorKevin Hartman <kevin@hart.mn>2014-09-04 03:12:58 +0200
committerKevin Hartman <kevin@hart.mn>2014-09-12 07:43:42 +0200
commit4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02 (patch)
tree2588f0c6051c9a5e3f23057d2953c35a854dbc43 /src/common/key_map.cpp
parentCreated structure for PAD. (diff)
downloadyuzu-4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02.tar
yuzu-4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02.tar.gz
yuzu-4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02.tar.bz2
yuzu-4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02.tar.lz
yuzu-4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02.tar.xz
yuzu-4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02.tar.zst
yuzu-4a94ec934ab1a2216f94e3fcc46f5dde1d6e2f02.zip
Diffstat (limited to '')
-rw-r--r--src/common/key_map.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/common/key_map.cpp b/src/common/key_map.cpp
new file mode 100644
index 000000000..5941a105b
--- /dev/null
+++ b/src/common/key_map.cpp
@@ -0,0 +1,21 @@
+// Copyright 2013 Dolphin Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#include "key_map.h"
+#include <map>
+
+
+namespace KeyMap {
+
+std::map<CitraKey, HID_User::PADState> g_key_map;
+
+void SetKeyMapping(CitraKey key, HID_User::PADState padState) {
+ g_key_map[key].hex = padState.hex;
+}
+
+HID_User::PADState Get3DSKey(CitraKey key) {
+ return g_key_map[key];
+}
+
+}