src/keyboard.c

branch
experimental_memory_mapper_v2
changeset 145
2d6de28c6e6c
parent 99
2d06b823a015
child 146
fb6a37a266da
     1.1 --- a/src/keyboard.c	Fri Apr 12 16:26:25 2013 +0100
     1.2 +++ b/src/keyboard.c	Tue May 21 22:48:32 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++;