summaryrefslogtreecommitdiffstats
path: root/src/input_common/keyboard.cpp
diff options
context:
space:
mode:
authorAmeer <aj662@drexel.edu>2020-07-02 22:51:16 +0200
committerAmeer <aj662@drexel.edu>2020-07-02 22:51:16 +0200
commit6e1639c7b004d13aba77549131ecee793fcc4065 (patch)
tree986eb64d29751cad2463e3e03f801e42b2089e05 /src/input_common/keyboard.cpp
parentAdd LR triggers as axes, half press to initiate a press, add GC axis id in config, clarify some code blocks for better readability (diff)
downloadyuzu-6e1639c7b004d13aba77549131ecee793fcc4065.tar
yuzu-6e1639c7b004d13aba77549131ecee793fcc4065.tar.gz
yuzu-6e1639c7b004d13aba77549131ecee793fcc4065.tar.bz2
yuzu-6e1639c7b004d13aba77549131ecee793fcc4065.tar.lz
yuzu-6e1639c7b004d13aba77549131ecee793fcc4065.tar.xz
yuzu-6e1639c7b004d13aba77549131ecee793fcc4065.tar.zst
yuzu-6e1639c7b004d13aba77549131ecee793fcc4065.zip
Diffstat (limited to 'src/input_common/keyboard.cpp')
-rw-r--r--src/input_common/keyboard.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input_common/keyboard.cpp b/src/input_common/keyboard.cpp
index eb6c3112b..afb8e6612 100644
--- a/src/input_common/keyboard.cpp
+++ b/src/input_common/keyboard.cpp
@@ -49,9 +49,8 @@ public:
void ChangeKeyStatus(int key_code, bool pressed) {
std::lock_guard guard{mutex};
for (const KeyButtonPair& pair : list) {
- if (pair.key_code == key_code) {
+ if (pair.key_code == key_code)
pair.key_button->status.store(pressed);
- }
}
}