From: Erik Hansson 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: NNTP-Posting-Host: p24.one.canit.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 > #include > > 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