From d6a9c4191b81fc9a86c1c870ebbba358c2bda2f0 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Tue, 27 Dec 2016 22:13:53 +0100 Subject: [PATCH] Swap x and y key --- sample_profiles/keys_v_gradiant_fr_ch-latin1 | 4 ++-- src/classes/Keyboard.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sample_profiles/keys_v_gradiant_fr_ch-latin1 b/sample_profiles/keys_v_gradiant_fr_ch-latin1 index 0a56625..f22b5f5 100644 --- a/sample_profiles/keys_v_gradiant_fr_ch-latin1 +++ b/sample_profiles/keys_v_gradiant_fr_ch-latin1 @@ -56,7 +56,7 @@ k w $raw3 k e $raw3 k r $raw3 k t $raw3 -k z $raw3 +k y $raw3 k u $raw3 k i $raw3 k o $raw3 @@ -94,7 +94,7 @@ k num_plus $raw4 # Raw 5 : k shift_left $raw5 k intl_backslash $raw5 -k y $raw5 +k z $raw5 k x $raw5 k c $raw5 k v $raw5 diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index 43151f9..45ba55f 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -235,8 +235,8 @@ bool Keyboard::getKeyAddress(Key key, KeyAddress &keyAddress) { case Key::v: keyAddress.id = 0x19; break; case Key::w: keyAddress.id = 0x1a; break; case Key::x: keyAddress.id = 0x1b; break; - case Key::z: keyAddress.id = 0x1c; break; - case Key::y: keyAddress.id = 0x1d; break; + case Key::y: keyAddress.id = 0x1c; break; + case Key::z: keyAddress.id = 0x1d; break; case Key::n1: keyAddress.id = 0x1e; break; case Key::n2: keyAddress.id = 0x1f; break; case Key::n3: keyAddress.id = 0x20; break;