Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

WheelK : at last, use that mouse =wheel= in DOS ! (Announce)

posted by bretjohn(R) Homepage E-mail, Rio Rancho, NM, 09.08.2016, 21:02

> The demo does test that 1. CPU >= 80286, 2. the BIOS "model byte" was <=
> 0xFC.

In addition to doing that, you can also check that it really works (actually simulate a keystroke and see if it appears in the keyboard buffer or not).

> However any program that short-circuits the BIOS buffer altogether and
> instead expects to get keys after keyboard interrupts will not work with
> the current 'stuffing' method employed by WK. Though I've "been there done
> that" more than once with the grey art of forcing scan codes thru, and
> interruptz from, the 8042-alike keyboard controller (aka Bret's "/K"
> method) I am very reluctant of bloating my tiny puppy with that kind of
> cuisine, besides being a can of worms, compatibility-wise : keyboard
> controllers in the real world vary wildly...

My USBKEYB program includes an external API for simulating keystrokes with the /K method. You can check for that API, and if it exists, use it to simulate the keystrokes via scan codes so you don't have to do it yourself. Indeed it is a can of worms, but a necessary one to open if there is any hope of creating a usable DOS USB keyboard driver.

Also as an FYI, the next version of USBMOUSE will include a similar API to simulate/virtualize mouse movements and button presses.

 

Complete thread:

Back to the forum
Board view  Mix view
15108 Postings in 1358 Threads, 246 registered users, 13 users online (1 registered, 12 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum