src/keyboard.c

changeset 136
f7d78dfb45d0
parent 99
2d06b823a015
child 146
fb6a37a266da
     1.1 --- a/src/keyboard.c	Wed Mar 13 00:43:25 2013 +0000
     1.2 +++ b/src/keyboard.c	Thu Apr 11 09:18:31 2013 +0100
     1.3 @@ -218,7 +218,6 @@
     1.4  
     1.5  	// if buffer empty, do a keyboard scan
     1.6  	if (ks->buflen == 0) {
     1.7 -		size_t last_writep;
     1.8  		// Keyboard Data Begins Here (BEGKBD)
     1.9  		//ks->buffer[ks->writep] = KEY_BEGIN_KEYBOARD;
    1.10  		//ks->writep = (ks->writep + 1) % KEYBOARD_BUFFER_SIZE;
    1.11 @@ -228,7 +227,6 @@
    1.12  			if (ks->keystate[i]) {
    1.13  				LOG_IF(kbc_debug, "KBC KEY DOWN: %d\n", i);
    1.14  				ks->buffer[ks->writep] = i;
    1.15 -				last_writep = ks->writep;
    1.16  				ks->writep = (ks->writep + 1) % KEYBOARD_BUFFER_SIZE;
    1.17  				if (ks->buflen < KEYBOARD_BUFFER_SIZE) ks->buflen++;
    1.18  				nkeys++;