Mail Archives: djgpp/1997/07/27/22:35:15
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.
- Raw text -