summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/retro_refit/keymaps
diff options
context:
space:
mode:
authorcbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info>2016-09-19 17:13:53 +0200
committercbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info>2016-09-19 17:13:53 +0200
commit2c3fcc6c08bf03aef17f7ed74394539187a9c734 (patch)
tree350f2e3317a1c1bce6f8a9a12df732fe4bcb04ef /keyboards/handwired/retro_refit/keymaps
parentcc7604d11670cf3155d53f0019557b249b1192c0 (diff)
parent5f9c2f63ffb2c58db73e67442134be58bfe2c129 (diff)
downloadqmk_firmware-2c3fcc6c08bf03aef17f7ed74394539187a9c734.tar.gz
qmk_firmware-2c3fcc6c08bf03aef17f7ed74394539187a9c734.tar.xz
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'keyboards/handwired/retro_refit/keymaps')
-rw-r--r--keyboards/handwired/retro_refit/keymaps/default/keymap.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/keyboards/handwired/retro_refit/keymaps/default/keymap.c b/keyboards/handwired/retro_refit/keymaps/default/keymap.c
new file mode 100644
index 000000000..405402d5e
--- /dev/null
+++ b/keyboards/handwired/retro_refit/keymaps/default/keymap.c
@@ -0,0 +1,33 @@
+// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
+// this is the style you want to emulate.
+
+#include "retro_refit.h"
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+[0] =
+ KEYMAP( ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, NLCK, SLCK, PSCR, PAUS, \
+ GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, BSPC, HOME, \
+ TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, PGUP, \
+ BSLS, A, S, D, F, G, H, J, K, L, SCLN, QUOT, ENT, PGDN, \
+ LSFT, Z, X, C, V, B, N, M, COMM, DOT, SLSH, RSFT, UP, END, \
+ LCTL, LGUI, LALT, SPC, INS, DEL, LEFT, DOWN, RGHT),
+};
+
+const uint16_t PROGMEM fn_actions[] = {
+
+};
+
+const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
+{
+ // MACRODOWN only works in this function
+ switch(id) {
+ case 0:
+ if (record->event.pressed) {
+ register_code(KC_RSFT);
+ } else {
+ unregister_code(KC_RSFT);
+ }
+ break;
+ }
+ return MACRO_NONE;
+};