User`s guide
10 Functions — Alphabetical List
10-114
Property Description
UpperPositionLimit Position coordinates for the upper limit of the mouse.
LimitPosition Enables mouse position limits. If false, the
object ignores the UpperPositionLimit and
LowerPositionLimit properties.
LowerPositionLimit Position coordinates for the lower limit of the mouse.
NormalizeOutputAngle Determines whether the integrated rotation angles
should wrap on a full circle (360°). This is not used
when you read the Output Type as Speed.
InitialPosition Initial condition for integrated translations. This is
not used when you set the Output Type to Speed.
InitialRotation Initial condition for integrated rotations. This is not
used when you set the Output Type to Speed.
Methods
Method Description
button b = button(mouse, n) reads the status of space
mouse button number n. Button status is returned as
logical 0 if not pressed and logical 1 if pressed. n can
be a vector to return multiple buttons.
close close(mouse) closes and invalidates the space
mouse object. The object cannot be used once it is
closed.
position p = position(mouse, n) reads the position of
space mouse axis number n. n can be a vector to
return positions of multiple axes. Translations and
rotations are integrated. Outputs are the position
and orientation in the form of roll/pitch/yaw angles.
speed s = speed(mouse, n) reads the speed of space
mouse axis number n. n can be a vector to return
the speeds of multiple axes. No transformations
are done. Outputs are the translation and rotation
speeds.