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), 19.05.2011, 15:32
(edited by tom on 19.05.2011, 15:51)

> > ;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
>
> In my experience, Method 2 has NEVER worked reliably on ANY of my test
> computers. It completely locks up some computers, especially older ones.
>> Method 1 is the best one to use if the BIOS HW supports it.
you are the expert here.
my own experience with scancode stuffing is ~15 years ago, and just worked
(on the few computers I tested it).
it might as well have been METHOD 1, I simply don't remember.

> The Method 1
> function should exist on all modern hardware, but it doesn't,
> especially on laptops.
to bad. however only few laptops have a USB keyboard anyway...
I'm sometimes a bit rude to machines, and simply ignore them. YMMV


> Quoting INT 15.4F from RBIL: "called by INT 09 handler to translate
> scan codes" ... "This permits software to rearrange the keyboard; for
> example, swapping the CapsLock and Control keys" ...
scancode -> ascii translation is a bit more complicated then swapping
CapsLock keys.

> If the user (or a program) tries to change the code page to one
> your driver doesn't support, and you don't respond appropriately, you
> could be in trouble. If you don't monitor INT 2F.2D81, you must instead
> poll the system to determine the current code page each time you perform a
> scancode-to-ASCII translation, at least for ASCII characters > 127.

agreed. mKEYB is lazy in this regard, and ignores codepages completely.
(the 'm' stands for 'mini')

the 'official' FreeDOS KEYBhandles codepages (for a bazillion languages)
but is a bit larger. I'll stick with mKEYB.




>
> KEYB surrogates are also supposed to respond to INT 2F.AD82 & 2F.AD83 to be
> able to report and toggle themselves between the "foreign" keyboard driver
> language and the default (US) keyboard driver language (this basically
> turns the driver on and off).
mKEYB supports this.

 

Complete thread:

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