Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
YsJoyReader Class Reference

#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)
 

Detailed Description

Definition at line 63 of file ysjoyreader.h.

Constructor & Destructor Documentation

YsJoyReader::YsJoyReader ( )

Definition at line 148 of file ysjoyreader.cpp.

Member Function Documentation

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

Definition at line 391 of file ysjoyreader.cpp.

void YsJoyReader::Read ( void  )

Definition at line 330 of file ysjoyreader.cpp.

int YsJoyReader::ReadCalibInfoFile ( FILE *  fp)

Definition at line 491 of file ysjoyreader.cpp.

void YsJoyReader::ReleaseInterface ( void  )

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.

Member Data Documentation

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.

int YsJoyReader::joyId

Definition at line 69 of file ysjoyreader.h.

char YsJoyReader::regPath[512]

Definition at line 71 of file ysjoyreader.h.


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


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:53