#include "src/lib/16_in.h"
// Internal routines
-
///////////////////////////////////////////////////////////////////////////
//
// INL_KeyService() - Handles a keyboard interrupt (key up/down)
INL_KeyService(void)
{
static boolean special;
- byte k,c,
- temp;
+ byte k,c;
+ register byte temp;
k = inp(0x60); // Get the scan code
if (INL_KeyHook && !special)
INL_KeyHook();
+ #ifdef TESTKEYIN
+ printf("%c %x %u\n", c, k, Keyboard[k]);
+ #endif
outp(0x20,0x20);
}
} while (TimeCount - lasttime < delay);
return(false);
}
+
+boolean IN_qb(byte kee)
+{
+ if(Keyboard[kee]==true) return 1;
+ else return 0;
+}