]> 4ch.mooo.com Git - 16.git/blobdiff - 16/modex16/dos_kb.c
I fixed the keyboard bug~ ^^
[16.git] / 16 / modex16 / dos_kb.c
index 7c6030ae4078b40787d88b3a2833b9878d36222f..dd92418994e703db2ad6acdc45bfc270b4a6aa08 100644 (file)
@@ -37,7 +37,8 @@ void interrupt newkb(void){
 
        /* Interpret the scan code and set our flags */
        #ifdef TESTING2
-       printf("%d[%d]\n",kee,key[kee]);
+       //printf("%d[%d]\n",kee,key[kee]);
+       printf("\0"); // bug
        #endif
        if(kee & 0x80)
                key[kee & 0x7F] = 0; // a key is released
@@ -60,7 +61,7 @@ void setkb(int vq){
                _dos_setvect(9, oldkb);
                /* Reset our function pointer to contain no valid address */
                oldkb = NULL;
-               #ifdef TESTING2
+               #ifdef TESTING
                /* Print the key heap */
                printf("\n");
                for(i=0; i<NUM_SCANCODES; i++){