Clear Filters
Clear Filters

How to Access Raw Mouse Data Stream

4 views (last 30 days)
Scott
Scott on 5 Apr 2014
Anyone know how to access the raw mouse data stream? Is this possible in Matlab? I want to use a mouse for robotic position tracking and need to get the raw x/y displacement data.
Thanks
Scott
  3 Comments
Daniel  De Becker
Daniel De Becker on 26 Jul 2016
Is there any update on this?

Sign in to comment.

Answers (1)

Wayne Xun
Wayne Xun on 26 Jul 2016
You can get the mouse position even when the pointer is outside of a gui scope with
get(0,'PointerLocation')
This returns the x and y coordinates of the mouse. Call this command continuously for a stream of mouse position. See the documentation here

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!