From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Swedish keyboard layout in Allegro Date: Sun, 27 Jul 1997 17:43:44 +0100 Organization: None Distribution: world Message-ID: <9iLscZAAr32zEwR5@talula.demon.co.uk> References: <33D69348 DOT AE34B6FC AT canit DOT se> <33DB13BD DOT CCE AT pobox DOT oleane DOT com> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Francois Charton writes: >2. simulate keypresses on all the keyboard keys (can you call int09h?, if >all fails, then you would have to do it "by hand", once and for all) and >use int 1600h to read the corresponding ASCII codes. Unfortunately I don't think you can trigger the hardware IRQ handler from code (it reads the scancode from a hardware ports in the keyboard controller, and I don't think it would be possible to stuff a value into that in a reliable or portable manner). The int 0x16 function with ah=5 stuffs keypresses into the BIOS buffer, but it takes them as both ascii and scancode numbers, so it can't be used to do the conversion either. It would be really nice to automate this, but unless someone can tell me how to do that, the only option is for anyone with a keyboard that they want supported to go through by hand, pressing all the keys and recording the results, and send me the resultant mapping table... -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.