From 60052acc0fe3e6429f5c1d24073b1f6af019bd19 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 21 Feb 2011 23:46:08 +0900 Subject: fixed macway to comply new API. --- macway/config.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'macway/config.h') diff --git a/macway/config.h b/macway/config.h index 1403ef127..9e443ba77 100644 --- a/macway/config.h +++ b/macway/config.h @@ -10,21 +10,27 @@ #define PRODUCT Macway mod #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 -/* USB NKey Rollover */ -#ifdef USB_NKRO_ENABLE -#endif + +/* key combination for command */ +#define IS_COMMAND() ( \ + keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \ + keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \ +) + /* mouse keys */ #ifdef MOUSEKEY_ENABLE # define MOUSEKEY_DELAY_TIME 192 #endif + /* PS/2 mouse */ #ifdef PS2_MOUSE_ENABLE # define PS2_CLOCK_PORT PORTF -- cgit v1.2.3-24-g4f1b