Mail Archives: djgpp/1998/03/30/09:41:15
On 30 Mar 1998, HackerOC3 wrote:
> does anyone have code to get a scan code? I have this microsoft c code:
This is functionally equivalent to the following:
#include <bios.h>
unsigned char Get_Scan_Code (void)
{
if (!bioskey (1))
return 0;
return bioskey (0);
}
Two notes about the original code:
1) It doesn't test the shift status, so you cannot distinguish
between 'a' and 'A'.
2) In general, I'd advise to make the function return an int, not
an unsigned char (it's a long story).
- Raw text -