OSDev.org https://forum.osdev.org/ |
|
Scan-codes https://forum.osdev.org/viewtopic.php?f=1&t=9648 |
Page 1 of 1 |
Author: | Whodoo [ Wed Jun 30, 2004 3:35 pm ] |
Post subject: | Scan-codes |
After a long time and lots and lots of topics, I got the keyboard interrupt working ;D But how do I convert the scancode? Also I read that ESC has the scancode 1, but when I print the scancode of a key that I press, ESC shows 68.. |
Author: | Brendan [ Thu Jul 01, 2004 2:10 am ] |
Post subject: | Re:Scan-codes |
Hi, There's 2 different sets of scan codes. The first one is normally used when the keyboard sends data to the keyboard controller chip. The keyboard controller chip usually converts this into a second (XT compatible) scan set before the keyboard driver reads it. Therefore, you should be getting these scan codes (with XT compatible tanslation): http://panda.cs.ndsu.nodak.edu/%7Eachap ... odes1.html With these scan codes 68 (0x44) is the 'F10' key, and ESCAPE would be 1 (0x01). If you turn the XT translation off you would get these scan codes instead: http://panda.cs.ndsu.nodak.edu/%7Eachap ... odes2.html With these scan codes 68 (0x44) is the letter 'O' key, and ESCAPE would be 118 (0x76). Cheers, Brendan |
Author: | WhoDoo [ Thu Jul 01, 2004 7:39 am ] |
Post subject: | Re:Scan-codes |
Thanks you.. what is the Make and Break tables? The make I understand but the break? |
Author: | Solar [ Thu Jul 01, 2004 8:11 am ] |
Post subject: | Re:Scan-codes |
You mean, you didn't understand the tables at http://panda.cs.ndsu.nodak.edu/~achapwe ... odes1.html ? Well, you could have tried http://panda.cs.ndsu.nodak.edu/~achapwe ... board.html (which is conveniently linked at the bottom of the former page under "related information") to find this: Quote: There are two different types of scan codes: "make codes" and "break codes". A make code is sent when a key is pressed or held down. A break code is sent when a key is released. <= meaning, no offense intended, try to take the morale for future web research. |
Author: | Whodoo [ Thu Jul 01, 2004 8:31 am ] |
Post subject: | Re:Scan-codes |
hee-hee thank you.. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |