direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
JoyReader Class Reference

#include <joyreaderMacOS.h>

Collaboration diagram for JoyReader:

List of all members.

Public Member Functions

 JoyReader ()
void Read (void)
int ReadCalibInfoFile (FILE *fp)
void ReleaseInterface (void)
int SetUpInterface (int joyId, IOHIDDeviceRef hidDev)
int WriteCalibInfoFile (FILE *fp) const

Static Public Member Functions

static int SetUpJoystick (int &nJoystick, JoyReader joystick[], int maxNumJoystick)

Public Attributes

JoyReaderAxis axis [JoyReaderMaxNumAxis]
JoyReaderButton button [JoyReaderMaxNumButton]
JoyReaderHatSwitch hatSwitch [JoyReaderMaxNumHatSwitch]
IOHIDDeviceRef hidDev
int joyId
char regPath [512]

Static Public Attributes

static CFMutableArrayRef devArray = NULL
static IOHIDManagerRef hidManager = NULL

Protected Member Functions

void AddAxis (int axisId, IOHIDElementRef elem, int min, int max, int scaledMin, int scaledMax)

Detailed Description

Definition at line 83 of file joyreaderMacOS.h.


Constructor & Destructor Documentation

JoyReader::JoyReader ( )

Definition at line 165 of file joyreaderMacOS.cpp.


Member Function Documentation

void JoyReader::AddAxis ( int  axisId,
IOHIDElementRef  elem,
int  min,
int  max,
int  scaledMin,
int  scaledMax 
)
protected

Definition at line 409 of file joyreaderMacOS.cpp.

Here is the caller graph for this function:

void JoyReader::Read ( void  )

Definition at line 348 of file joyreaderMacOS.cpp.

int JoyReader::ReadCalibInfoFile ( FILE *  fp)

Definition at line 512 of file joyreaderMacOS.cpp.

Here is the caller graph for this function:

void JoyReader::ReleaseInterface ( void  )

Definition at line 387 of file joyreaderMacOS.cpp.

int JoyReader::SetUpInterface ( int  joyId,
IOHIDDeviceRef  hidDev 
)

Definition at line 170 of file joyreaderMacOS.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int JoyReader::SetUpJoystick ( int &  nJoystick,
JoyReader  joystick[],
int  maxNumJoystick 
)
static

Definition at line 433 of file joyreaderMacOS.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int JoyReader::WriteCalibInfoFile ( FILE *  fp) const

Definition at line 482 of file joyreaderMacOS.cpp.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 93 of file joyreaderMacOS.h.

Definition at line 94 of file joyreaderMacOS.h.

CFMutableArrayRef JoyReader::devArray = NULL
static

Definition at line 87 of file joyreaderMacOS.h.

Definition at line 95 of file joyreaderMacOS.h.

IOHIDDeviceRef JoyReader::hidDev

Definition at line 90 of file joyreaderMacOS.h.

IOHIDManagerRef JoyReader::hidManager = NULL
static

Definition at line 86 of file joyreaderMacOS.h.

int JoyReader::joyId

Definition at line 89 of file joyreaderMacOS.h.

char JoyReader::regPath[512]

Definition at line 91 of file joyreaderMacOS.h.


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