From 8bb1c010fa075d6971389db8ebab89ac1b05ca15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?You=20Xiaojie=20/=20=E5=B0=A4=E6=99=93=E6=9D=B0?= Date: Mon, 18 Mar 2019 07:01:15 +0800 Subject: [PATCH] Correct the comments of matrix ROW and COL. (#600) according to the code: static uint8_t matrix[MATRIX_ROWS]; #define ROW(code) (code>>3) #define COL(code) (code&0x07) in converter/ps2_usb/matrix.c ROW is decided by bits 7~4 of scancode COL is decided by bits 2~0 of scancode --- converter/ps2_usb/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converter/ps2_usb/config.h b/converter/ps2_usb/config.h index 2fd3ad7f..ceee05b0 100644 --- a/converter/ps2_usb/config.h +++ b/converter/ps2_usb/config.h @@ -29,8 +29,8 @@ along with this program. If not, see . /* matrix size */ -#define MATRIX_ROWS 32 // keycode bit: 3-0 -#define MATRIX_COLS 8 // keycode bit: 6-4 +#define MATRIX_ROWS 32 // keycode bit: 7-3 +#define MATRIX_COLS 8 // keycode bit: 2-0 /* key combination for command */ -- 2.46.2