delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/27/19:18:52

From: Erik Hansson <hansson AT canit DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Swedish keyboard layout in Allegro
Date: Sun, 27 Jul 1997 15:36:17 +0200
Organization: CanIt Public Access, Stockholm
Lines: 34
Message-ID: <33DB4ED0.46962D6C@canit.se>
References: <Pine DOT UW2 DOT 3 DOT 95 DOT 970726192325 DOT 5247A-100000 AT bryggen DOT bgnett DOT no> <Wg3GcGAxHl2zEw1G AT talula DOT demon DOT co DOT uk>
NNTP-Posting-Host: p24.one.canit.se
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019