How do I implement a scan code table?

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
safsom2
Posts: 2
Joined: Thu Oct 12, 2017 8:23 pm

How do I implement a scan code table?

Post by safsom2 »

Hello, I am new to OS development. I have just followed the 'Bare Bones' tutorial, and I am now seeking to add keyboard input to it. I am trying to use the functions inb() and outb() and the getScanCode() function provided in the PS/2 article. However, it says I need a 'scan code table' to do this. How exactly do I declare one of these 'scan code tables'?
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: How do I implement a scan code table?

Post by iansjack »

As an array. Hence the [...] in the example code.
Post Reply