Mouse Input?

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

Mouse Input?

Post 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)
User avatar
Sik
Member
Member
Posts: 251
Joined: Wed Aug 17, 2016 4:55 am

Re: Mouse Input?

Post 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.
Post Reply