Page 1 of 1

Need Help making Keyboard drivers

Posted: Tue Jan 26, 2016 5:47 am
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

Re: Need Help making Keyboard drivers

Posted: Tue Jan 26, 2016 7:34 am
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.

Re: Need Help making Keyboard drivers

Posted: Tue Jan 26, 2016 11:29 am
by ashishkumar4
lol and how to get to know that? any idea :/