Getting input from the keyboard can be as easy as calling the getch() function. But for games we need a better solution. For games on MS DOS machines you need quick, unbuffered input. To simply get the state of keypresses we need to talk to the keyboard controller directly. Let’s have a look at how that’s done!
Support me on Patreon: / root42
Support me on Ko-Fi: ko-fi.com/root42
Support me on PayPal: paypal.me/ArneSchmitz
Support me on KZitem: / @root42
Source code: github.com/root42/doskbc
Previous episodes:
Keyboard: • Let's Code MS DOS 0x02...
Sound Blaster: • Let's Code MS DOS 0x0B...
IRQ Handling: • Let's Code MS DOS 0x0D...
Music: A Little Wonder by Spino2006
Негізгі бет Ғылым және технология Let's Code MS DOS 0x24: Low Level Keyboard Programming
Пікірлер: 26