Joystick Subsystem API Documentation
Joystick Subsystem Initialization
The first thing an application should do when using the Joystick Subsystem is to enable the subsystem and open a joystick device.
Initialize Subsystem
Initializing the subsystem is very simple. The best way to do this is to inherit form EM_APPLICATION (best in your root class) and you will get a new feature joystick_subsystem.
This is the Joystick Subsystem object in a singleton access. Simply call now joystick_subsystem.enable to enable the subsystem.
Note: Always call joystick_subsystem.disable to disable the subsystem. This will automatically close every open device handler and clean up everything for you. Otherwise your application may leave unfreed resources.