Mouse input?

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Jschott515
 
Posts: 14
Joined: Tue Jun 28, 2016 12:19 pm

Mouse input?

Post by Jschott515 »

Hi, is there any way I can collect mouse input (x/y values from the mouse being moved)? Any examples help. Thanks

User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: Mouse input?

Post by zener »

Any particular kind of mouse? I think there is some code around for a PS2 mouse.

User avatar
Jschott515
 
Posts: 14
Joined: Tue Jun 28, 2016 12:19 pm

Re: Mouse input?

Post by Jschott515 »

zener wrote:Any particular kind of mouse? I think there is some code around for a PS2 mouse.
Not really just a standard computer mouse

User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: Mouse input?

Post by zener »


User avatar
Jschott515
 
Posts: 14
Joined: Tue Jun 28, 2016 12:19 pm

Re: Mouse input?

Post by Jschott515 »

Know how to do that with a raspberry pi?

User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: Mouse input?

Post by zener »

No. Do some searching, I would guess there is some code around, especially for the pi. Maybe someone else can help.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Mouse input?

Post by adafruit_support_mike »

On a RasPi, the mouse data will come into the system through /dev/mouse

Device files act like regular files, so you can open them and read the data as it comes in.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”