FreeStick  0.3
Cross Platform Open Sorce Joystick Lib
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FreeStick Cross Platform Joystick and Gamepad Library.

Here is an example on how to use the library.
Create a device manager and call init.
Derive your class that is going to proceess joystick events from IFSJoystickListener and implmet you interface funtions
then register your class with the Device Manager for the call back you are intrested in

#include "freestick.h"
using namespace freestick;
class JoystickEventHandler: public IFSJoystickListener
{
public:
JoystickEventHandler(){};
~JoystickEventHandler(){};
virtual void onButtonDown(FSDeviceInputEvent event) {}
virtual void onButtonUp(FSDeviceInputEvent event) {}
virtual void onStickMove(FSDeviceInputEvent event) { }
virtual void onDisconnect(FSBaseEvent event){};
virtual void onConnect(FSBaseEvent event){};
};
void main()
{
JoystickEventHandler handler;
FreeStickDeviceManager deviceManager;
deviceManager.init();
}