#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.
YsJoyReader::YsJoyReader | ( | ) |
Definition at line 148 of file ysjoyreader.cpp.
|
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.
Definition at line 153 of file ysjoyreader.cpp.
|
static |
Definition at line 415 of file ysjoyreader.cpp.
int YsJoyReader::WriteCalibInfoFile | ( | FILE * | fp | ) | const |
Definition at line 461 of file ysjoyreader.cpp.
YsJoyReaderAxis YsJoyReader::axis[YsJoyReaderMaxNumAxis] |
Definition at line 73 of file ysjoyreader.h.
YsJoyReaderButton YsJoyReader::button[YsJoyReaderMaxNumButton] |
Definition at line 74 of file ysjoyreader.h.
|
static |
Definition at line 67 of file ysjoyreader.h.
YsJoyReaderHatSwitch YsJoyReader::hatSwitch[YsJoyReaderMaxNumHatSwitch] |
Definition at line 75 of file ysjoyreader.h.
IOHIDDeviceRef YsJoyReader::hidDev |
Definition at line 70 of file ysjoyreader.h.
|
static |
Definition at line 66 of file ysjoyreader.h.
int YsJoyReader::joyId |
Definition at line 69 of file ysjoyreader.h.
char YsJoyReader::regPath[512] |
Definition at line 71 of file ysjoyreader.h.