changeset 4:7e09639847e1 draft

- add mouse emulation - move numbers row to _RAISE layer - move punctuations row to _LOWER layer - re-arrange cursor keys as reversed-T shape as of mouse keys - move function keys to _ADJUST layer
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 18 Feb 2019 10:21:46 +0900
parents 4bc0df3a6934
children eea4ee4ebb93
files keymap.c rules.mk
diffstat 2 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/keymap.c	Tue Feb 12 21:03:20 2019 +0900
+++ b/keymap.c	Mon Feb 18 10:21:46 2019 +0900
@@ -112,11 +112,11 @@
 
   [_LOWER] = LAYOUT_kc( \
   //,-----------------------------------------.                ,-----------------------------------------.
-        EQL,     1,     2,     3,     4,     5,                      6,     7,     8,     9,     0,  BSLS,\
+       PLUS,  EXLM,    AT,  HASH,   DLR,  PERC,                   CIRC,  AMPR,  ASTR,  LPRN,  RPRN,  BSLS,\
   //|------+------+------+------+------+------|                |------+------+------+------+------+------|
-      CTLTB,    F1,    F2,    F3,    F4,    F5,                   PGUP,  LEFT,  DOWN,    UP, RIGHT, XXXXX, \
+      CTLTB,  LTAB,  RTAB,  LSPC,  RSPC,  USPC,                   HOME,  PGUP,    UP,  PGDN, XXXXX,  PIPE,\
   //|------+------+------+------+------+------|                |------+------+------+------+------+------|
-       LSFT,    F6,    F7,    F8,    F9,   F10,                   PGDN,  HOME,   END,   F11,   F12,  RSFT, \
+       LSFT,   GRV,  TILD, XXXXX, XXXXX,  DSPC,                    END,  LEFT,  DOWN, RIGHT, XXXXX,  RSFT,\
   //|------+------+------+------+------+------+------|  |------+------+------+------+------+------+------|
                                   LOWER,   SPC,  LALT,      ENT,  BSPC, RAISE \
                               //`--------------------'  `--------------------'
@@ -124,11 +124,11 @@
 
   [_RAISE] = LAYOUT_kc( \
   //,-----------------------------------------.                ,-----------------------------------------.
-       PLUS,  EXLM,    AT,  HASH,   DLR,  PERC,                   CIRC,  AMPR,  ASTR,  LPRN,  RPRN,  PIPE,\
+        EQL,     1,     2,     3,     4,     5,                      6,     7,     8,     9,     0,  MINS,\
   //|------+------+------+------+------+------|                |------+------+------+------+------+------|
-      CTLTB, XXXXX, XXXXX, XXXXX, XXXXX, XXXXX,                  XXXXX, XXXXX, XXXXX,  LCBR,  RCBR, XXXXX, \
+      CTLTB, XXXXX,  WH_U,  MS_U,  WH_D,  BTN1,                  XXXXX,  LCBR,  RCBR,  LBRC,  RBRC,  BSLS,\
   //|------+------+------+------+------+------|                |------+------+------+------+------+------|
-       LSFT,   GRV,  TILD, XXXXX, XXXXX, XXXXX,                  XXXXX, XXXXX, XXXXX,  LBRC,  RBRC,  RSFT,\
+       LSFT,  BTN3,  MS_L,  MS_D,  MS_R,  BTN2,                  XXXXX,    LT,    GT, XXXXX, XXXXX,  RSFT,\
   //|------+------+------+------+------+------+------|  |------+------+------+------+------+------+------|
                                   LOWER,   SPC,  LALT,      ENT,  BSPC, RAISE \
                               //`--------------------'  `--------------------'
@@ -136,15 +136,16 @@
 
   [_ADJUST] = LAYOUT_kc( \
   //,-----------------------------------------.                ,-----------------------------------------.
-        RST,  SSCR,  SWIN, XXXXX,  USPC, XXXXX,                  XXXXX, XXXXX, XXXXX, XXXXX, XXXXX,   RST,\
+         F1,    F2,    F3,    F4,    F5,    F6,                     F7,   F8,     F9,   F10,   F11,   F12,\
   //|------+------+------+------+------+------|                |------+------+------+------+------+------|
-      XXXXX,  LTAB,  RTAB,  LSPC,  RSPC,  NAPP,                  XXXXX,  MUTE,  VOLD,  VOLU, XXXXX, XXXXX,\
+      XXXXX,  SSCR,  SWIN, XXXXX, XXXXX, XXXXX,                  XXXXX,  MUTE,  VOLD,  VOLU, XXXXX, XXXXX,\
   //|------+------+------+------+------+------|                |------+------+------+------+------+------|
-      XXXXX, XXXXX, XXXXX, XXXXX,  DSPC,  NWIN,                  XXXXX,  MRWD,  MPLY,  MFFD, XXXXX, XXXXX,\
+        RST, XXXXX, XXXXX, XXXXX, XXXXX, XXXXX,                  XXXXX,  MRWD,  MPLY,  MFFD, XXXXX,   RST,\
   //|------+------+------+------+------+------+------|  |------+------+------+------+------+------+------|
                                   LOWER,   SPC,  LALT,      ENT,  BSPC, RAISE \
                               //`--------------------'  `--------------------'
   )
+
 #if 0
   [_MAC] = LAYOUT_kc( \
   //,-----------------------------------------.                ,-----------------------------------------.
@@ -158,6 +159,7 @@
                               //`--------------------'  `--------------------'
   )
 #endif
+
 };
 
 int RGB_current_mode;
--- a/rules.mk	Tue Feb 12 21:03:20 2019 +0900
+++ b/rules.mk	Mon Feb 18 10:21:46 2019 +0900
@@ -4,7 +4,7 @@
 #   the appropriate keymap folder that will get included automatically
 #
 BOOTMAGIC_ENABLE = full     # Virtual DIP switch configuration(+1000)
-MOUSEKEY_ENABLE = no        # Mouse keys(+4700)
+MOUSEKEY_ENABLE = yes        # Mouse keys(+4700)
 EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
 CONSOLE_ENABLE = no         # Console for debug(+400)
 COMMAND_ENABLE = no         # Commands for debug and configuration