src/keyboard.c

changeset 92
3d5680edc1f0
parent 91
781c15e60012
child 94
80872ecf64fa
     1.1 --- a/src/keyboard.c	Wed Feb 09 23:45:55 2011 +0000
     1.2 +++ b/src/keyboard.c	Thu Feb 10 00:07:59 2011 +0000
     1.3 @@ -232,6 +232,7 @@
     1.4  
     1.5  		// If no keys down, then send All Keys Up byte
     1.6  		if (nkeys == 0) {
     1.7 +				printf("\tKBC ALL KEYS UP\n");
     1.8  			ks->buffer[ks->writep] = KEY_ALL_UP;
     1.9  			ks->writep = (ks->writep + 1) % KEYBOARD_BUFFER_SIZE;
    1.10  			if (ks->buflen < KEYBOARD_BUFFER_SIZE) ks->buflen++;
    1.11 @@ -240,7 +241,7 @@
    1.12  		// TODO: inject "mouse data follows" chunk header and mouse movement info
    1.13  
    1.14  		// Last Entry In List
    1.15 -//		ks->buffer[ks->writep] = 0x80;
    1.16 +//		ks->buffer[ks->writep] = KEY_LIST_END;
    1.17  //		ks->writep = (ks->writep + 1) % KEYBOARD_BUFFER_SIZE;
    1.18  //		if (ks->buflen < KEYBOARD_BUFFER_SIZE) ks->buflen++;
    1.19  	}