Main Content

pov

Read status of joystick point of view

Since R2025a

    Description

    p = pov(joystick,n) reads the status of the joystick point of view (POV) of axis number n.

    Input Arguments

    collapse all

    Joystick object that interfaces a joystick device with the 3D environment, specified as a sim3d.io.Joystick object.

    Example: joystick = sim3d.io.Joystick(ID=1)

    Axis number of joystick, specified as a real positive scalar or a real positive vector.

    Example: n = 1

    Example: n = [2 3]

    Output Arguments

    collapse all

    Point of view, returned as a real scalar or vector, in degrees. If this value is -1, no POV axis is selected.

    Version History

    Introduced in R2025a