From d2b9489a5e19fabb5d6ec285192b19dc25b36d5e Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 22 Feb 2011 01:21:53 +0900 Subject: fixed hhkb to comply new API. --- hhkb/config.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'hhkb/config.h') diff --git a/hhkb/config.h b/hhkb/config.h index b8392aa8e..886eef928 100644 --- a/hhkb/config.h +++ b/hhkb/config.h @@ -10,26 +10,27 @@ #define PRODUCT HHKB mod #define DESCRIPTION t.m.k. keyboard firmware for HHKB mod + /* matrix size */ #define MATRIX_ROWS 8 #define MATRIX_COLS 8 - /* define if matrix has ghost */ //#define MATRIX_HAS_GHOST -/* key combination for command */ -#define IS_COMMAND() (keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT)) +/* key combination for command */ +#define IS_COMMAND() ( \ + keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \ + keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \ +) -/* USB NKey Rollover */ -#ifdef USB_NKRO_ENABLE -#endif /* mouse keys */ #ifdef MOUSEKEY_ENABLE # define MOUSEKEY_DELAY_TIME 192 #endif + /* PS/2 mouse */ #ifdef PS2_MOUSE_ENABLE /* -- cgit v1.2.3