Mouse Input?
-
- Posts: 4
- Joined: Sun Jul 16, 2017 9:31 pm
- Libera.chat IRC: TSG_
Mouse Input?
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?
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.
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.