Main Content

caps

Joystick capabilities

Since R2025a

    Description

    c = caps(joystick) returns joystick capabilities, such as the number of axes, buttons, POVs, and force-feedback axes.

    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)

    Output Arguments

    collapse all

    Joystick capabilities, returned as a structure with fields named Axes, Buttons, POVs, and Forces. You can also access these values from the properties of the joystick object.

    Data Types: struct

    Version History

    Introduced in R2025a