aboutsummaryrefslogtreecommitdiff
path: root/keyboard/macway/keymap.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-10-17 21:43:44 +0900
committertmk <nobody@nowhere>2012-10-17 21:43:44 +0900
commitce2e06c39465b76a1780e5d594eaea7697afafd6 (patch)
treefa5d10c6741380190825a27a1c77a38ee5a893d9 /keyboard/macway/keymap.c
parent8570c25379e168874fb4cdc7ee0590829a0f0d2c (diff)
downloadqmk_firmware-ce2e06c39465b76a1780e5d594eaea7697afafd6.tar.gz
qmk_firmware-ce2e06c39465b76a1780e5d594eaea7697afafd6.zip
Fix projects for new keycodes
Diffstat (limited to 'keyboard/macway/keymap.c')
-rw-r--r--keyboard/macway/keymap.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/keyboard/macway/keymap.c b/keyboard/macway/keymap.c
index 6d5ad62e9..aa50ba5c8 100644
--- a/keyboard/macway/keymap.c
+++ b/keyboard/macway/keymap.c
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#include <stdint.h> 21#include <stdint.h>
22#include <stdbool.h> 22#include <stdbool.h>
23#include <avr/pgmspace.h> 23#include <avr/pgmspace.h>
24#include "usb_keycodes.h" 24#include "keycode.h"
25#include "print.h" 25#include "print.h"
26#include "debug.h" 26#include "debug.h"
27#include "util.h" 27#include "util.h"
@@ -37,15 +37,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
37 K67, K16, K26, K36, K46, K47, K57, K56, K66, K76, K87, K32, K35, \ 37 K67, K16, K26, K36, K46, K47, K57, K56, K66, K76, K87, K32, K35, \
38 K75, K22, K00, K07, K21, K04, K37, K27, K17 \ 38 K75, K22, K00, K07, K21, K04, K37, K27, K17 \
39) { \ 39) { \
40 { KB_##K00, KB_##K01, KB_##K02, KB_NO, KB_##K04, KB_NO, KB_##K06, KB_##K07 }, \ 40 { KC_##K00, KC_##K01, KC_##K02, KC_NO, KC_##K04, KC_NO, KC_##K06, KC_##K07 }, \
41 { KB_##K10, KB_##K11, KB_##K12, KB_##K13, KB_##K14, KB_##K15, KB_##K16, KB_##K17 }, \ 41 { KC_##K10, KC_##K11, KC_##K12, KC_##K13, KC_##K14, KC_##K15, KC_##K16, KC_##K17 }, \
42 { KB_##K20, KB_##K21, KB_##K22, KB_##K23, KB_##K24, KB_NO, KB_##K26, KB_##K27 }, \ 42 { KC_##K20, KC_##K21, KC_##K22, KC_##K23, KC_##K24, KC_NO, KC_##K26, KC_##K27 }, \
43 { KB_##K30, KB_NO, KB_##K32, KB_##K33, KB_##K34, KB_##K35, KB_##K36, KB_##K37 }, \ 43 { KC_##K30, KC_NO, KC_##K32, KC_##K33, KC_##K34, KC_##K35, KC_##K36, KC_##K37 }, \
44 { KB_##K40, KB_##K41, KB_##K42, KB_##K43, KB_##K44, KB_##K45, KB_##K46, KB_##K47 }, \ 44 { KC_##K40, KC_##K41, KC_##K42, KC_##K43, KC_##K44, KC_##K45, KC_##K46, KC_##K47 }, \
45 { KB_##K50, KB_##K51, KB_##K52, KB_##K53, KB_##K54, KB_##K55, KB_##K56, KB_##K57 }, \ 45 { KC_##K50, KC_##K51, KC_##K52, KC_##K53, KC_##K54, KC_##K55, KC_##K56, KC_##K57 }, \
46 { KB_##K60, KB_##K61, KB_##K62, KB_##K63, KB_##K64, KB_NO, KB_##K66, KB_##K67 }, \ 46 { KC_##K60, KC_##K61, KC_##K62, KC_##K63, KC_##K64, KC_NO, KC_##K66, KC_##K67 }, \
47 { KB_##K70, KB_NO, KB_NO, KB_##K73, KB_##K74, KB_##K75, KB_##K76, KB_NO }, \ 47 { KC_##K70, KC_NO, KC_NO, KC_##K73, KC_##K74, KC_##K75, KC_##K76, KC_NO }, \
48 { KB_##K80, KB_##K81, KB_##K82, KB_##K83, KB_##K84, KB_##K85, KB_NO, KB_##K87 } \ 48 { KC_##K80, KC_##K81, KC_##K82, KC_##K83, KC_##K84, KC_##K85, KC_NO, KC_##K87 } \
49} 49}
50 50
51#define KEYCODE(layer, row, col) (pgm_read_byte(&keymaps[(layer)][(row)][(col)])) 51#define KEYCODE(layer, row, col) (pgm_read_byte(&keymaps[(layer)][(row)][(col)]))
@@ -66,14 +66,14 @@ static const uint8_t PROGMEM fn_layer[] = {
66// Assign Fn key(0-7) to a keycode sent when release Fn key without use of the layer. 66// Assign Fn key(0-7) to a keycode sent when release Fn key without use of the layer.
67// See layer.c for details. 67// See layer.c for details.
68static const uint8_t PROGMEM fn_keycode[] = { 68static const uint8_t PROGMEM fn_keycode[] = {
69 KB_NO, // Fn0 69 KC_NO, // Fn0
70 KB_NO, // Fn1 70 KC_NO, // Fn1
71 KB_SLSH, // Fn2 71 KC_SLSH, // Fn2
72 KB_SCLN, // Fn3 72 KC_SCLN, // Fn3
73 KB_SPC, // Fn4 73 KC_SPC, // Fn4
74 KB_NO, // Fn5 74 KC_NO, // Fn5
75 KB_NO, // Fn6 75 KC_NO, // Fn6
76 KB_NO // Fn7 76 KC_NO // Fn7
77}; 77};
78 78
79static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 79static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {