![]() |
VR-Forces 5.0.2 Developer's Guide
|
The Joystick Controller demonstrates the following
This example will install a new controller that is installed by creating a new scenario using the Joystick.sms from the developer examples. Once a new scenario is created on this SMS, you can create the Joystick Example entity. This entity will create the new joystick controller. The new joystick controller will, via the joystick.sysdef file, create a new function group for the joystick called "Example Joystick". If you configure this example joystick control using the Joystick configuration page, once you play the scenario and enable the new joystick controls on the entity, you will see output in the back-end console in response to your mapped joystick changes.
Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application.
In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the joystick plugin.
To view the new behavior:
| MyJoystickControllerComponenet | This subclass of DtControllerComponent prints out a message when the function group and function are enabled and used. |