Mouse input?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Jschott515
- Posts: 14
- Joined: Tue Jun 28, 2016 12:19 pm
Mouse input?
Hi, is there any way I can collect mouse input (x/y values from the mouse being moved)? Any examples help. Thanks
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Mouse input?
Any particular kind of mouse? I think there is some code around for a PS2 mouse.
- Jschott515
- Posts: 14
- Joined: Tue Jun 28, 2016 12:19 pm
Re: Mouse input?
Not really just a standard computer mousezener wrote:Any particular kind of mouse? I think there is some code around for a PS2 mouse.
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
- Jschott515
- Posts: 14
- Joined: Tue Jun 28, 2016 12:19 pm
Re: Mouse input?
Know how to do that with a raspberry pi?
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Mouse input?
No. Do some searching, I would guess there is some code around, especially for the pi. Maybe someone else can help.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Mouse input?
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.
Device files act like regular files, so you can open them and read the data as it comes in.
Please be positive and constructive with your questions and comments.