Can the PS/2 library used in the mouse?

General discussion on mikroC.
Post Reply
Author
Message
iamyanh
Posts: 1
Joined: 23 Mar 2007 09:55

Can the PS/2 library used in the mouse?

#1 Post by iamyanh » 23 Mar 2007 10:04

I want to assess the PS/2 mouse with PIC micro controller. As the MikroC has the PS/2 mouse library that used in the PS/2 keyboard. I wonder can it be used to access the PS/2 mouse?

JavierDuenas
Posts: 87
Joined: 22 Jun 2006 23:42
Location: United States

#2 Post by JavierDuenas » 24 Mar 2007 03:24

Hello iamyanh,

The PS2 library that comes with MikroC can be used with PS2 keyboards only as they do not return values read from the PS2 bus but codes for keystrokes and their status.

However, I have posted a couple of functions that will allow you to read raw bytes from a PS2 mouse, then you can decode and use those values at your own leisure.

There is a ton of information regarding PS2 mice on the Internet, so you only have to read the bytes and act accordingly.

I hope that helps,
Regards,
Javier

ali genidy
Posts: 54
Joined: 03 Apr 2017 09:17

Re: Can the PS/2 library used in the mouse?

#3 Post by ali genidy » 22 Aug 2017 06:45

hi
pleas can you send me the couple of functions
thank you

Post Reply

Return to “mikroC General”