OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 6:06 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How do I implement a scan code table?
PostPosted: Thu Oct 12, 2017 8:38 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: How do I implement a scan code table?
PostPosted: Thu Oct 12, 2017 11:59 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
As an array. Hence the [...] in the example code.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 61 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group