From 504a9f42ff7cfecb94eb954124e48ff65d345008 Mon Sep 17 00:00:00 2001 From: tmk Date: Sun, 24 Feb 2013 20:38:43 +0900 Subject: Inhibit repeating key of PC98 --- converter/pc98_usb/matrix.c | 60 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 6 deletions(-) (limited to 'converter/pc98_usb/matrix.c') diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c index 2f1e821c5d..18ad5bfe7c 100644 --- a/converter/pc98_usb/matrix.c +++ b/converter/pc98_usb/matrix.c @@ -61,11 +61,42 @@ uint8_t matrix_cols(void) return MATRIX_COLS; } +static void pc98_inhibit_repeat(void) +{ + uint8_t code; + + while (serial_recv()) ; +RETRY: + PC98_RDY_PORT |= (1<