X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fmacway%2Fconfig.h;h=e87da1ffa68ce518a5250deef650ee91d682bb41;hb=4192bce16b6cf4c5acc10ea6b26fb714fc132e01;hp=5503c77e3ad2a6a773a9e8c392ff914e65e72fe1;hpb=fca518f90dfc7f72132ff7950b000cfbd5709807;p=max%2Ftmk_keyboard.git diff --git a/keyboard/macway/config.h b/keyboard/macway/config.h index 5503c77e..e87da1ff 100644 --- a/keyboard/macway/config.h +++ b/keyboard/macway/config.h @@ -18,9 +18,6 @@ along with this program. If not, see . #ifndef CONFIG_H #define CONFIG_H -/* controller configuration */ -#include "controller_teensy.h" - /* USB Device descriptor parameter */ #define VENDOR_ID 0xFEED @@ -29,38 +26,28 @@ along with this program. If not, see . #define MANUFACTURER t.m.k. #define PRODUCT Macway mod - /* message strings */ #define DESCRIPTION t.m.k. keyboard firmware for Macway mod - /* matrix size */ #define MATRIX_ROWS 9 #define MATRIX_COLS 8 + /* define if matrix has ghost */ #define MATRIX_HAS_GHOST + /* Set 0 if need no debouncing */ #define DEBOUNCE 5 +/* legacy keymap support */ +#define USE_LEGACY_KEYMAP /* key combination for command */ #define IS_COMMAND() ( \ - keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_LCTRL) | MOD_BIT(KB_LALT) | MOD_BIT(KB_LGUI)) || \ - keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_RSHIFT)) \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LCTRL) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) || \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ ) - -/* layer switching */ -#define LAYER_SWITCH_DELAY 100 -#define LAYER_SEND_FN_TERM 300 - - -/* mouse keys */ -#ifdef MOUSEKEY_ENABLE -# define MOUSEKEY_DELAY_TIME 192 -#endif - - /* PS/2 mouse */ #ifdef PS2_MOUSE_ENABLE # define PS2_CLOCK_PORT PORTF