Advertisement

Keyboard interrupt handler for Dos

Started by September 28, 2000 04:31 PM
1 comment, last by farmersckn 24 years, 3 months ago
Does anyone know how to make an interrupt handler for the keyboard in dos? I want to create one, but I don''t know how. Thanks in advance. farmersckn p.s. If you could need to use interrupts, please show me using inline assembler, or just plain assembler, instead of inregs/outregs, cuz i''m trying to learn the other way, but It''s ok if you want. (YOU are helping ME, right? I really don''t have any say in it...) Tnx again Yesterday is the past, tomorrow is the future. Today is a gift, that is why we call it the present.
Yesterday is the past, tomorrow is the future. Today is a gift, that is why we call it the present.
Hi, go to my site and download chopper1 in the D''load section

In there I have a keyboard handler for DOS, with key defines etc.
I wrote it myself and it should work for any DOS application.

http://chopper2k.qgl.org

Cel
Cel aka Razehttp://chopper2k.qgl.org
Advertisement
Long time ago I''ve made such a thing in TASM for BC 3.1
It also recognizes wether the left shift/ctrl etc key or the right one is pressed and allows toggling of the keyboard LEDs.

www.lunaticsystems.de/truefx/truefx1.zip
(Look in Keyboard.h and ASM\Keyboard.asm)

-Markus-
Professional C++ and .NET developer trying to break into indie game development.
Follow my progress: http://blog.nuclex-games.com/ or Twitter - Topics: Ogre3D, Blender, game architecture tips & code snippets.

This topic is closed to new replies.

Advertisement