How to Access Raw Mouse Data Stream

4 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

回答(1 个)

Wayne Xun
Wayne Xun 2016-7-26
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

类别

Help CenterFile Exchange 中查找有关 Robotics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by