Joystick Subsystem API Documentation
Example Project
The example project is simply called Joystick and can be found in {EM}/example/joystick. The simplest way to work your way into the Joystick Subsystem is to work your way through this example.
Overview
When you have opened this example you will find five classes inside the em_joystick cluster. The five classes are: JOYSTICK, JOYSTICK_SCENE JOYSTICK_AXIS_PANEL, JOYSTICK_BALL_PANEL and JOYSTICK_HAT_PANEL. Here is a little overview about those classes:
Class JOYSTICK: Root class where the application, including all needed subsystems, are initialized.
Class JOYSTICK_SCENE: Main scene for CD Player. It is build with EiffelMedia Widgets and it is well commented. The Joystick button_up and button_down events are handled here, see handle_joystick_button_down_event and handle_joystick_button_up_event for more details.
Class JOYSTICK_AXIS_PANEL: Handling of all axis events and displaying the current position to the user. See feature handle_joystick_axis_event for more details.
Class JOYSTICK_BALL_PANEL: Handling of all ball events and displaying the current position to the user. See feature handle_joystick_ball_event for more details.
Class JOYSTICK_HAT_PANEL: Handling of all hat events and displaying the current position to the user. See feature handle_joystick_hat_event for more details.
Remarks: A Joystick device has to be attached, otherwise this example will show you absolutly nothing usable.