> Again, it worked in the console.However, when I started a game
> (One Must Fall 2097) to test it there, it did not receive the key events my 
> TSR emulated.
> After that, I switched to using the outportb() function - and it
> worked.The game moved the characters as if I was pressing the right
> arrow key for a few seconds, then releasing it for a while.However,
> when I started two other games (Commander Keen 1 and Golden Axe),
> they did not receive the key events.

working in the console is trivial. the console will (basically) use
int16.0 to read keyboard input.

working in *every* circumstance is a bit more difficult. But the
outportb method should work in *every* circumstance as it is a way to
simulate a complete key press, including interrupts, ...
of course your way to use it may be buggy (too little of
is_keyboard_controller_busy()), or your hardware may be buffy (Bret
claims that his notebook doesnt wotk using outportb()), but usually it
works flawlessly

Tom


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to