Page 1 of 1

Mouse Input?

Posted: Wed Jul 26, 2017 6:45 pm
by TheScripterGeek
I'm kind of a noob to this whole OSDEV idea, and the PS/2 thing(For mouse & keyboard) seems a bit complicated, does anyone mind making it simpler for a noob like me to understand?(And if it matters, I have stuff like outb and inb)

Re: Mouse Input?

Posted: Wed Jul 26, 2017 8:33 pm
by Sik
1) Focus on keyboard first, leave mouse for once that's done =P
2) Figure out how to handle PS/2 packets (interrupts included)
3) Look at the format in which they send data (it's just a few bytes)
3b) Remember that it's one interrupt for each byte, not each packet =P (so you need to keep track of the current state across interrupts)

Try to break down the problem like that and it should be easier.