Need Help making 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
ashishkumar4
Member
Member
Posts: 73
Joined: Wed Dec 23, 2015 10:42 pm

Need Help making Keyboard drivers

Post by ashishkumar4 »

Here is another stupid post from me.

This time, I require help in making keyboard drivers. NO NO NO! I have already made a working keyboard driver and user input functions (getch, getline etc).

I want help in that the scancode I am using are working on normal computer and VMs. But because I use my PC from my mobile via RDP (my parents wont allow me to sit on pc for long :3 ), when I give input in any VM via RDP, it seems my scancodes are not good for them. for example, on qemu, on any key I press (in rdp, on real keyboard, its perfect), I only get one character while none in virtual box and VMWARE requires completely different set of scancode-to-key tables.

Can you all please provide me with different-different scancode tables so that my OS can be flexible, and also a way to check which scancode set works for a system (some type of calibration maybe :/ )
Or else, I think the problem is due to it not being a real ps/2 or ps/2 emulated keyboard. But other operating systems like Linux etc works well on VMs via rdp :/ how to make a driver for it??

Ignore my level of stupidity, am still a small kid :3
The best method for accelerating a computer is the one that boosts it by 9.8 m/s2.
My OS : https://github.com/AshishKumar4/Aqeous
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Need Help making Keyboard drivers

Post by BrightLight »

I can't recall where I read this, and I'm not entirely sure of this, but RDP doesn't send standard scancodes; instead it sends scancodes that map to virtual key codes. Here is a list of virtual key codes. I guess, you'll need some way to know if your OS is running with a physical keyboard or under RDP.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
ashishkumar4
Member
Member
Posts: 73
Joined: Wed Dec 23, 2015 10:42 pm

Re: Need Help making Keyboard drivers

Post by ashishkumar4 »

lol and how to get to know that? any idea :/
The best method for accelerating a computer is the one that boosts it by 9.8 m/s2.
My OS : https://github.com/AshishKumar4/Aqeous
Post Reply