OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 2:14 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Mouse Input?
PostPosted: Wed Jul 26, 2017 6:45 pm 
Offline

Joined: Sun Jul 16, 2017 9:31 pm
Posts: 4
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)


Top
 Profile  
 
 Post subject: Re: Mouse Input?
PostPosted: Wed Jul 26, 2017 8:33 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 17, 2016 4:55 am
Posts: 251
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot], Majestic-12 [Bot], SemrushBot [Bot] and 92 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group