1 #ifndef YSMACOSXJOYSTICK_IS_INCLUDED 2 #define YSMACOSXJOYSTICK_IS_INCLUDED 13 #include <sys/errno.h> 15 #include <IOKit/hid/IOHIDLib.h> 37 double GetCalibratedValue(
void)
const;
39 void CaptureCenter(
void);
40 void BeginCaptureMinMax(
void);
41 void CaptureMinMax(
void);
42 void CenterFromMinMax(
void);
60 int GetDiscreteValue(
void)
const;
78 int SetUpInterface(
int joyId,IOHIDDeviceRef hidDev);
80 void ReleaseInterface(
void);
82 int WriteCalibInfoFile(FILE *fp)
const;
83 int ReadCalibInfoFile(FILE *fp);
86 void AddAxis(
int axisId,IOHIDElementRef
elem,
int min,
int max,
int scaledMin,
int scaledMax);
int YsJoyReaderLoadJoystickCalibrationInfo(int nJoystick, YsJoyReader joystick[])
static CFMutableArrayRef devArray
static IOHIDManagerRef hidManager
const int YsJoyReaderMaxNumHatSwitch
const int YsJoyReaderMaxNumAxis
const int YsJoyReaderMaxNumButton
FILE * YsJoyReaderOpenJoystickCalibrationFile(const char mode[])
int YsJoyReaderSaveJoystickCalibrationInfo(int nJoystick, YsJoyReader joystick[])
int YsJoyReaderSetUpJoystick(int &nJoystick, YsJoyReader joystick[], int maxNumJoystick)