]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: Add short names in unimap
authortmk <hasu@tmk-kbd.com>
Fri, 9 Sep 2016 02:21:23 +0000 (11:21 +0900)
committertmk <hasu@tmk-kbd.com>
Fri, 9 Sep 2016 02:24:44 +0000 (11:24 +0900)
tmk_core/common/unimap.h

index 3b6540b1f7e9a9810b6db0714d654482840800a5..2dd5b2218de38a8e39fe59376e52e3bebefa2fe7 100644 (file)
@@ -208,4 +208,65 @@ enum unimap_position_codes {
     UNIMAP_NO,              // 0x80
 };
 
+/*
+ * Short names
+ */
+#define UNIMAP_LCTL UNIMAP_LCTRL
+#define UNIMAP_RCTL UNIMAP_RCTRL
+#define UNIMAP_LSFT UNIMAP_LSHIFT
+#define UNIMAP_RSFT UNIMAP_RSHIFT
+#define UNIMAP_ESC  UNIMAP_ESCAPE
+#define UNIMAP_BSPC UNIMAP_BSPACE
+#define UNIMAP_ENT  UNIMAP_ENTER
+#define UNIMAP_DEL  UNIMAP_DELETE
+#define UNIMAP_INS  UNIMAP_INSERT
+#define UNIMAP_CAPS UNIMAP_CAPSLOCK
+#define UNIMAP_CLCK UNIMAP_CAPSLOCK
+#define UNIMAP_RGHT UNIMAP_RIGHT
+#define UNIMAP_PGDN UNIMAP_PGDOWN
+#define UNIMAP_PSCR UNIMAP_PSCREEN
+#define UNIMAP_SLCK UNIMAP_SCROLLLOCK
+#define UNIMAP_PAUS UNIMAP_PAUSE
+#define UNIMAP_BRK  UNIMAP_PAUSE
+#define UNIMAP_NLCK UNIMAP_NUMLOCK
+#define UNIMAP_SPC  UNIMAP_SPACE
+#define UNIMAP_MINS UNIMAP_MINUS
+#define UNIMAP_EQL  UNIMAP_EQUAL
+#define UNIMAP_GRV  UNIMAP_GRAVE
+#define UNIMAP_RBRC UNIMAP_RBRACKET
+#define UNIMAP_LBRC UNIMAP_LBRACKET
+#define UNIMAP_COMM UNIMAP_COMMA
+#define UNIMAP_BSLS UNIMAP_BSLASH
+#define UNIMAP_SLSH UNIMAP_SLASH
+#define UNIMAP_SCLN UNIMAP_SCOLON
+#define UNIMAP_QUOT UNIMAP_QUOTE
+#define UNIMAP_APP  UNIMAP_APPLICATION
+#define UNIMAP_NUHS UNIMAP_NONUS_HASH
+#define UNIMAP_NUBS UNIMAP_NONUS_BSLASH
+/* Japanese specific */
+#define UNIMAP_ZKHK UNIMAP_GRAVE
+/* Keypad */
+#define UNIMAP_P1   UNIMAP_KP_1
+#define UNIMAP_P2   UNIMAP_KP_2
+#define UNIMAP_P3   UNIMAP_KP_3
+#define UNIMAP_P4   UNIMAP_KP_4
+#define UNIMAP_P5   UNIMAP_KP_5
+#define UNIMAP_P6   UNIMAP_KP_6
+#define UNIMAP_P7   UNIMAP_KP_7
+#define UNIMAP_P8   UNIMAP_KP_8
+#define UNIMAP_P9   UNIMAP_KP_9
+#define UNIMAP_P0   UNIMAP_KP_0
+#define UNIMAP_PDOT UNIMAP_KP_DOT
+#define UNIMAP_PCMM UNIMAP_KP_COMMA
+#define UNIMAP_PSLS UNIMAP_KP_SLASH
+#define UNIMAP_PAST UNIMAP_KP_ASTERISK
+#define UNIMAP_PMNS UNIMAP_KP_MINUS
+#define UNIMAP_PPLS UNIMAP_KP_PLUS
+#define UNIMAP_PEQL UNIMAP_KP_EQUAL
+#define UNIMAP_PENT UNIMAP_KP_ENTER
+/* Consumer Page */
+#define UNIMAP_MUTE UNIMAP_VOLUME_MUTE
+#define UNIMAP_VOLU UNIMAP_VOLUME_UP
+#define UNIMAP_VOLD UNIMAP_VOLUME_DOWN
+
 #endif