OIS::EventUtils Class Reference

#include <EventHelpers.h>

List of all members.

Static Public Member Functions

static bool isJoyStick (int deviceID, JoyStickInfo &js)
static bool isMouse (int)
static bool isKeyboard (int)
static void enumerateForceFeedback (int deviceID, LinuxForceFeedback **ff)
static void removeForceFeedback (LinuxForceFeedback **ff)
static std::string getName (int deviceID)


Detailed Description

Definition at line 33 of file EventHelpers.h.


Member Function Documentation

bool EventUtils::isJoyStick ( int  deviceID,
JoyStickInfo js 
) [static]

Definition at line 106 of file EventHelpers.cpp.

References DeviceComponentInfo::absAxes, OIS::JoyStickInfo::axes, OIS::JoyStickInfo::axis_map, OIS::JoyStickInfo::axis_range, OIS::JoyStickInfo::button_map, OIS::JoyStickInfo::buttons, DeviceComponentInfo::buttons, getComponentInfo(), getName(), DeviceComponentInfo::hats, OIS::JoyStickInfo::hats, OIS::JoyStickInfo::joyFileD, OIS_EXCEPT, DeviceComponentInfo::relAxes, and OIS::JoyStickInfo::vendor.

Referenced by OIS::LinuxJoyStick::_scanJoys().

static bool OIS::EventUtils::isMouse ( int   )  [inline, static]

Definition at line 37 of file EventHelpers.h.

static bool OIS::EventUtils::isKeyboard ( int   )  [inline, static]

Definition at line 38 of file EventHelpers.h.

void EventUtils::enumerateForceFeedback ( int  deviceID,
LinuxForceFeedback **  ff 
) [static]

Definition at line 174 of file EventHelpers.cpp.

References OIS::Effect::Constant, OIS::Effect::ConstantForce, OIS::Effect::Custom, OIS::Effect::CustomForce, OIS::Effect::Damper, OIS::Effect::Friction, OIS::Effect::Inertia, isBitSet(), OIS::Effect::PeriodicForce, OIS::Effect::Ramp, OIS::Effect::RampForce, removeForceFeedback(), OIS::Effect::SawToothDown, OIS::Effect::SawToothUp, OIS::Effect::Sine, OIS::Effect::Spring, OIS::Effect::Square, and OIS::Effect::Triangle.

Referenced by OIS::LinuxJoyStick::_initialize().

void EventUtils::removeForceFeedback ( LinuxForceFeedback **  ff  )  [static]

Definition at line 236 of file EventHelpers.cpp.

Referenced by enumerateForceFeedback(), and OIS::LinuxJoyStick::~LinuxJoyStick().

std::string EventUtils::getName ( int  deviceID  )  [static]

Definition at line 166 of file EventHelpers.cpp.

References OIS_DEVICE_NAME.

Referenced by isJoyStick().


The documentation for this class was generated from the following files:
Generated on Sat Dec 1 20:13:54 2007 for OIS by  doxygen 1.5.4