Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

In reply to : Bret 'll have to hate FreeDOS mKEYB, too (Developers)

posted by tom Homepage, Germany (West), 18.05.2011, 12:35
(edited by tom on 18.05.2011, 13:01)

after looking into your code, I see that you simulate keypresses
using the keyboard controller
;FAKE A KEYBOARD KEYSTROKE USING METHOD 2 (WORKS WITH MOST AT KEYBOARDS)

IMHO this is exactly the way your code should work, and will work nicely
both with the default BIOS, and with existing international keyboard drivers

> Two different notions here: keyboard language and keyboard layout. The only
> way I know of to determine the keyboard language is with INT 2F.AD80h.
there is no such thing as a'keyboard language'.
INT 2F.AD80h reports the 'language' of the keyboard *driver*

there is also no such thing as a 'keyboard layout'.
hitting the key between 'T' and 'U' produces the exact same scancode
on each keyboard in known universe;
it's translated to'Y' in america, and to 'Z' in germany.
not the 'Y' or 'Z' keys are are changed in the layout, they were only
labeled different, and are transleated accordingly by the keyboard driver.


>ALL KEYBOARD RE-MAPPING UTILITIES SHOULD SUPPORT THIS FUNCTION,
> whether they use INT 09 or INT 15.4F.
why would I even install a keyboard driver if the translation is done by
USBKEYB ?

> AFAIK, none of the INT 15.4F programs do.
what's even the relation of int15.4f to int2f.ad80 ?

> This is the only way other programs can know what the
> current language is.
'other programs' shouldn't care if this is written using a german or US keyboard. this is called an 'abstraction'.

BTW: simulating a keyboard interrupt, and then single stepping it to
modify scancodes is an heroic attempt to solve the problem, but probably overkill

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 242 users online (0 registered, 242 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum