FreeStick  0.3
Cross Platform Open Sorce Joystick Lib
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
freestick::FSBaseManager Class Reference

This is the base manager. More...

#include <FSBaseManager.h>

Inheritance diagram for freestick::FSBaseManager:
Inheritance graph
[legend]

Public Member Functions

 FSBaseManager ()
 
virtual ~FSBaseManager ()
 
virtual void ListenForAllJoysticksForEventTypes (unsigned int eventFlags, IFSJoystickListener &listener)
 This is the base manager. More...
 
virtual void UnListenForAllJoysticksForEventTypes (unsigned int eventFlags, IFSJoystickListener &listener)
 
float convertRawToNormalizedRanger (double value, minMaxNumber maxValue, minMaxNumber minValue)
 
virtual void init ()
 
virtual void init (IFSDeviceIDCreator *idCreator)
 
virtual const FSBaseDevicegetDevice (idNumber deviceID)
 

Protected Member Functions

void ListenForAllJoysticksForEventType (FreeStickEventType eventType, IFSJoystickListener &listener)
 
void UnListenForAllJoysticksForEventType (FreeStickEventType eventType, IFSJoystickListener &listener)
 
void ListenForJoystickEvent (FreeStickEventType eventType, IFSJoystickListener &listener)
 
void RemoveListenerForEventType (FreeStickEventType eventType, IFSJoystickListener &listener)
 
virtual void addDevice (FSBaseDevice *device)
 
virtual void removeDevice (FSBaseDevice *device)
 
virtual void inputOnDeviceChanged (FreeStickEventType eventType, FSEventAction eventAction, FSDeviceInput inputType, idNumber deviceID, idNumber deviceControlID, int newValue, int oldValue, minMaxNumber min, minMaxNumber max)
 
virtual void inputOnDeviceChangedWithNormilzedValues (FreeStickEventType eventType, FSEventAction eventAction, FSDeviceInput inputType, idNumber deviceID, idNumber deviceControlID, float newValue, float oldValue)
 
virtual elementID getNextID ()
 
void updateEvent (FSBaseEvent &event)
 

Protected Attributes

std::unordered_map< unsigned int, FSBaseDevice * > deviceMap
 

Detailed Description

This is the base manager.

This is the base manager with lots of verbose documentation.

Constructor & Destructor Documentation

◆ FSBaseManager()

FSBaseManager::FSBaseManager ( )

◆ ~FSBaseManager()

FSBaseManager::~FSBaseManager ( )
virtual

Member Function Documentation

◆ addDevice()

void FSBaseManager::addDevice ( FSBaseDevice device)
protectedvirtual

◆ convertRawToNormalizedRanger()

float FSBaseManager::convertRawToNormalizedRanger ( double  value,
minMaxNumber  maxValue,
minMaxNumber  minValue 
)
inline

◆ getDevice()

const FSBaseDevice * FSBaseManager::getDevice ( idNumber  deviceID)
virtual

◆ getNextID()

elementID FSBaseManager::getNextID ( )
protectedvirtual

◆ init() [1/2]

void FSBaseManager::init ( )
virtual

◆ init() [2/2]

void FSBaseManager::init ( IFSDeviceIDCreator idCreator)
virtual

◆ inputOnDeviceChanged()

void FSBaseManager::inputOnDeviceChanged ( FreeStickEventType  eventType,
FSEventAction  eventAction,
FSDeviceInput  inputType,
idNumber  deviceID,
idNumber  deviceControlID,
int  newValue,
int  oldValue,
minMaxNumber  min,
minMaxNumber  max 
)
protectedvirtual

◆ inputOnDeviceChangedWithNormilzedValues()

void FSBaseManager::inputOnDeviceChangedWithNormilzedValues ( FreeStickEventType  eventType,
FSEventAction  eventAction,
FSDeviceInput  inputType,
idNumber  deviceID,
idNumber  deviceControlID,
float  newValue,
float  oldValue 
)
protectedvirtual

◆ ListenForAllJoysticksForEventType()

void FSBaseManager::ListenForAllJoysticksForEventType ( FreeStickEventType  eventType,
IFSJoystickListener listener 
)
protected

◆ ListenForAllJoysticksForEventTypes()

void FSBaseManager::ListenForAllJoysticksForEventTypes ( unsigned int  eventFlags,
IFSJoystickListener listener 
)
virtual

This is the base manager.

This is the base manager with lots of verbose documentation.

Parameters
listenerThis is what a listener does.
joystickInfoThis is what a joystickInfo does.

◆ ListenForJoystickEvent()

void freestick::FSBaseManager::ListenForJoystickEvent ( FreeStickEventType  eventType,
IFSJoystickListener listener 
)
protected

◆ removeDevice()

void FSBaseManager::removeDevice ( FSBaseDevice device)
protectedvirtual

◆ RemoveListenerForEventType()

void FSBaseManager::RemoveListenerForEventType ( FreeStickEventType  eventType,
IFSJoystickListener listener 
)
protected

◆ UnListenForAllJoysticksForEventType()

void FSBaseManager::UnListenForAllJoysticksForEventType ( FreeStickEventType  eventType,
IFSJoystickListener listener 
)
protected

◆ UnListenForAllJoysticksForEventTypes()

void FSBaseManager::UnListenForAllJoysticksForEventTypes ( unsigned int  eventFlags,
IFSJoystickListener listener 
)
virtual

◆ updateEvent()

void FSBaseManager::updateEvent ( FSBaseEvent event)
protected

Member Data Documentation

◆ deviceMap

std::unordered_map<unsigned int, FSBaseDevice * > freestick::FSBaseManager::deviceMap
protected

The documentation for this class was generated from the following files: