X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fmacway%2Fconfig.h;h=e87da1ffa68ce518a5250deef650ee91d682bb41;hb=5d8b9cb1c63b3a489e523808639d606df803de51;hp=2e68bf252fb0b57e8cf42353b78ac9e347eb3e7f;hpb=afb08462085132acf7a1962522952f7dbf064519;p=max%2Ftmk_keyboard.git diff --git a/keyboard/macway/config.h b/keyboard/macway/config.h index 2e68bf25..e87da1ff 100644 --- a/keyboard/macway/config.h +++ b/keyboard/macway/config.h @@ -18,38 +18,36 @@ 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 #define PRODUCT_ID 0xBEE0 +#define DEVICE_VER 0x0202 #define MANUFACTURER t.m.k. #define PRODUCT Macway mod -#define DESCRIPTION t.m.k. keyboard firmware for 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)) \ ) - -/* mouse keys */ -#ifdef MOUSEKEY_ENABLE -# define MOUSEKEY_DELAY_TIME 192 -#endif - - /* PS/2 mouse */ #ifdef PS2_MOUSE_ENABLE # define PS2_CLOCK_PORT PORTF