Mail Archives: djgpp/1997/07/27/19:18:52
Shawn Hargreaves wrote:
> To me this sounds like it's a lower level hook for use by keyboard
> extenders, which takes place _before_ the BIOS does the scancode to
> ascii conversion. I wrote a little test program, and on my machine
> (Win95 DOS box running 4DOS) it generates a 1->1 mapping regardless of
>
> whether I select a UK or US keyboard layout. It would be useful if you
>
> could try this on a Swedish system, but I have a nasty feeling that it
>
> won't output anything useful...
>
> #include <stdio.h>
> #include <dpmi.h>
>
> int main()
> {
> __dpmi_regs r;
> int i;
>
> for (i=0; i<128; i++) {
> r.x.ax = 0x4F00 + i;
> __dpmi_int(0x15, &r);
> printf("%d -> %d\n", i, r.x.ax&0xFF);
> }
>
> return 0;
> }
You're right, it don't.
Erik Hansson
- Raw text -