Keyboard drivers?

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
wat
Posts: 4
Joined: Sun Apr 30, 2017 10:28 pm
Libera.chat IRC: haaaaaalp
Location: WA, USA
Contact:

Keyboard drivers?

Post by wat »

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)
wat
Posts: 4
Joined: Sun Apr 30, 2017 10:28 pm
Libera.chat IRC: haaaaaalp
Location: WA, USA
Contact:

Re: Keyboard drivers?

Post by wat »

Thanks
My OS: WatOS (GitHub)
jackdawson
Posts: 1
Joined: Wed Aug 02, 2017 5:33 am
Libera.chat IRC: Fresher
Contact:

Re: Keyboard drivers?

Post by jackdawson »

I was also looking for the driver. Thanks :)
stevewoods1986
Member
Member
Posts: 80
Joined: Wed Aug 09, 2017 7:37 am

Re: Keyboard drivers?

Post by stevewoods1986 »

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: Select all

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
elissaamsmart
Posts: 2
Joined: Tue May 14, 2019 2:04 am

Re: Keyboard drivers?

Post by elissaamsmart »

So nobody noticed spammy porn links above? Put your mouse under "Thanks" and there you'll see colored like a background spammy links
Octocontrabass
Member
Member
Posts: 5584
Joined: Mon Mar 25, 2013 7:01 pm

Re: Keyboard drivers?

Post by Octocontrabass »

You can use the "report post" button to notify moderators without posing a reply in the thread.
Post Reply