Main Content

vrjoystick

(To be removed) Create joystick object

vrjoystick will be removed in a future release. For more information, see Version History.

Description

Create a joystick object.

Creation

Description

joy = vrjoystick(id) creates a joystick object capable of interfacing with a joystick device. The id parameter is a one-based joystick ID. The joystick ID is the system ID assigned to the given joystick device. You can find the properties of the joystick that is connected to the system in the Game Controllers section of the system Control Panel.

joy = vrjoystick(id,'forcefeedback') enables force feedback if the joystick supports this capability.

Object Functions

axis(To be removed) Read status of joystick
button (To be removed) Read status of joystick
caps(To be removed) Joystick capabilities
close(To be removed) Close and invalidate joystick
force(To be removed) Apply force feedback to joystick axis
pov(To be removed) Read status of joystick point of view
read(To be removed) Read status of joystick button, axes and pov

Version History

Introduced in R2007b

collapse all

R2023b: To be removed

The vrjoystick object will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks in Unreal Engine Scenario Applications to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Get Started Creating Virtual World with Actors.