Keyboard: what for scancode set 2 is intorduced in the AT???

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
suslik
Member
Member
Posts: 45
Joined: Sun May 27, 2012 1:00 am
Location: Russia

Keyboard: what for scancode set 2 is intorduced in the AT???

Post by suslik »

I really don't understand what for scancode set 2 is developed. It seems to me that only for translating to the scancode set 1 since old DOS isn't aware of set 2. This illogicality is breaking my mind. :evil: I need some logical explanation.
suslik
Member
Member
Posts: 45
Joined: Sun May 27, 2012 1:00 am
Location: Russia

Re: Keyboard: what for scancode set 2 is intorduced in the A

Post by suslik »

Someone told me that set 2 is more ordered than set 1, but I can't see any order in both of them.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Keyboard: what for scancode set 2 is intorduced in the A

Post by Combuster »

Set 1 is actually dead simple: Type in "QWERTY" on an US keyboard and you get a nicely sorted set of scan code numbers. In other words: if you hit a key, and then they key to the left or right of it, the difference is one - with some exceptions for the "large" keys. You only don't see the pattern when you type "ABCD" because the keys are physically located all over.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
suslik
Member
Member
Posts: 45
Joined: Sun May 27, 2012 1:00 am
Location: Russia

Re: Keyboard: what for scancode set 2 is intorduced in the A

Post by suslik »

OK, I have seen order in set 1, but what about set 2? What set 2 was created for?
Post Reply