OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Jul 21, 2019 1:15 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Keyboard drivers?
PostPosted: Tue Aug 01, 2017 4:49 pm 
Offline

Joined: Sun Apr 30, 2017 10:28 pm
Posts: 4
Location: WA, USA
What's the best (and reasonably easy) way to write a PS/2 keyboard driver? I already have a console driver and a minimal kstdlib.

Is there a good way to store keymaps?

Unrelated: How do I set fonts on a VGA card without being in real mode?

(This is for WatOS)

_________________
My OS: WatOS (GitHub)


Top
 Profile  
 
 Post subject: Re: Keyboard drivers?
PostPosted: Tue Aug 01, 2017 5:02 pm 
Offline
Member
Member

Joined: Thu Aug 13, 2015 4:57 pm
Posts: 334
http://wiki.osdev.org/%228042%22_PS/2_Controller
http://wiki.osdev.org/PS/2_Keyboard

http://wiki.osdev.org/VGA_Fonts#Get_from_VGA_RAM_directly

edit. added third URL.


Top
 Profile  
 
 Post subject: Re: Keyboard drivers?
PostPosted: Tue Aug 01, 2017 9:33 pm 
Offline

Joined: Sun Apr 30, 2017 10:28 pm
Posts: 4
Location: WA, USA
Thanks

_________________
My OS: WatOS (GitHub)


Top
 Profile  
 
 Post subject: Re: Keyboard drivers?
PostPosted: Wed Aug 02, 2017 6:24 am 
Offline

Joined: Wed Aug 02, 2017 5:33 am
Posts: 1
I was also looking for the driver. Thanks :)

_________________
SEO Service in Lucknow | Best SEO Company Lucknow


Top
 Profile  
 
 Post subject: Re: Keyboard drivers?
PostPosted: Mon Aug 14, 2017 8:59 am 
Offline
Member
Member

Joined: Wed Aug 09, 2017 7:37 am
Posts: 80
wat wrote:
What's the best (and reasonably easy) way to write a PS/2 keyboard driver? I already have a console driver and a minimal kstdlib.

Is there a good way to store keymaps?

Unrelated: How do I set fonts on a VGA card without being in real mode?

(This is for WatOS)


PS2_Keyboard is a great article on things.
Here's a short piece of code just to get you started.

Code:
mov al, 0 ; make sure al has nothing in it
in al, 0x60 ; get scancode

cmp al, 0x1E ; scancode for the letter A (scan code set 1)
je firstletter


Top
 Profile  
 
 Post subject: Re: Keyboard drivers?
PostPosted: Tue May 14, 2019 2:06 am 
Offline

Joined: Tue May 14, 2019 2:04 am
Posts: 2
So nobody noticed spammy porn links above? Put your mouse under "Thanks" and there you'll see colored like a background spammy links


Top
 Profile  
 
 Post subject: Re: Keyboard drivers?
PostPosted: Tue May 14, 2019 2:10 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 1552
You can use the "report post" button to notify moderators without posing a reply in the thread.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: klange and 4 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