#include <ysjoyreader.h>
Public Member Functions | |
void | Read (void) |
int | ReadCalibInfoFile (FILE *fp) |
void | ReleaseInterface (void) |
int | SetUpInterface (int joyId, IOHIDDeviceRef hidDev) |
int | WriteCalibInfoFile (FILE *fp) const |
YsJoyReader () | |
Static Public Member Functions | |
static int | SetUpJoystick (int &nJoystick, YsJoyReader joystick[], int maxNumJoystick) |
Public Attributes | |
YsJoyReaderAxis | axis [YsJoyReaderMaxNumAxis] |
YsJoyReaderButton | button [YsJoyReaderMaxNumButton] |
YsJoyReaderHatSwitch | hatSwitch [YsJoyReaderMaxNumHatSwitch] |
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) |
Definition at line 63 of file ysjoyreader.h.
Definition at line 148 of file ysjoyreader.cpp.
void YsJoyReader::AddAxis | ( | int | axisId, |
IOHIDElementRef | elem, | ||
int | min, | ||
int | max, | ||
int | scaledMin, | ||
int | scaledMax | ||
) | [protected] |
Definition at line 391 of file ysjoyreader.cpp.
Definition at line 330 of file ysjoyreader.cpp.
int YsJoyReader::ReadCalibInfoFile | ( | FILE * | fp | ) |
Definition at line 491 of file ysjoyreader.cpp.
Definition at line 369 of file ysjoyreader.cpp.
int YsJoyReader::SetUpInterface | ( | int | joyId, |
IOHIDDeviceRef | hidDev | ||
) |
Definition at line 153 of file ysjoyreader.cpp.
int YsJoyReader::SetUpJoystick | ( | int & | nJoystick, |
YsJoyReader | joystick[], | ||
int | maxNumJoystick | ||
) | [static] |
Definition at line 415 of file ysjoyreader.cpp.
int YsJoyReader::WriteCalibInfoFile | ( | FILE * | fp | ) | const |
Definition at line 461 of file ysjoyreader.cpp.
Definition at line 73 of file ysjoyreader.h.
Definition at line 74 of file ysjoyreader.h.
CFMutableArrayRef YsJoyReader::devArray = NULL [static] |
Definition at line 67 of file ysjoyreader.h.
Definition at line 75 of file ysjoyreader.h.
IOHIDDeviceRef YsJoyReader::hidDev |
Definition at line 70 of file ysjoyreader.h.
IOHIDManagerRef YsJoyReader::hidManager = NULL [static] |
Definition at line 66 of file ysjoyreader.h.
Definition at line 69 of file ysjoyreader.h.
char YsJoyReader::regPath[512] |
Definition at line 71 of file ysjoyreader.h.