Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
JoystickDevice Class Reference
Inheritance diagram for JoystickDevice:
Inheritance graph
[legend]
Collaboration diagram for JoystickDevice:
Collaboration graph
[legend]

Public Member Functions

void GetButtonPresses (std::vector< DeviceInput > &vPresses, IOHIDElementCookie cookie, int value, const std::chrono::time_point< std::chrono::steady_clock > &now) const
 
int AssignIDs (InputDevice startID)
 
void GetDevicesAndDescriptions (std::vector< InputDeviceInfo > &vDevices) const
 
- Public Member Functions inherited from HIDDevice
bool Open (io_object_t device)
 
void StartQueue (CFRunLoopRef loopRef, IOHIDCallbackFunction callback, void *target, int refCon)
 
const std::string & GetDescription () const
 

Protected Member Functions

bool AddLogicalDevice (int usagePage, int usage)
 
void AddElement (int usagePage, int usage, IOHIDElementCookie cookie, const CFDictionaryRef properties)
 
void Open ()
 
bool InitDevice (int vid, int pid)
 
- Protected Member Functions inherited from HIDDevice
void AddElementToQueue (IOHIDElementCookie cookie)
 
IOReturn SetReport (IOHIDReportType type, UInt32 reportID, void *buffer, UInt32 size, UInt32 timeoutMS)
 

Member Function Documentation

◆ AddElement()

void JoystickDevice::AddElement ( int  usagePage,
int  usage,
IOHIDElementCookie  cookie,
const CFDictionaryRef  properties 
)
protectedvirtual

Implements HIDDevice.

◆ AddLogicalDevice()

bool JoystickDevice::AddLogicalDevice ( int  usagePage,
int  usage 
)
protectedvirtual

Implements HIDDevice.

◆ AssignIDs()

int JoystickDevice::AssignIDs ( InputDevice  startID)
virtual

Reimplemented from HIDDevice.

◆ GetButtonPresses()

void JoystickDevice::GetButtonPresses ( std::vector< DeviceInput > &  vPresses,
IOHIDElementCookie  cookie,
int  value,
const std::chrono::time_point< std::chrono::steady_clock > &  now 
) const
virtual

Implements HIDDevice.

◆ GetDevicesAndDescriptions()

void JoystickDevice::GetDevicesAndDescriptions ( std::vector< InputDeviceInfo > &  vDevices) const
virtual

Implements HIDDevice.

◆ InitDevice()

bool JoystickDevice::InitDevice ( int  vid,
int  pid 
)
protectedvirtual

Reimplemented from HIDDevice.

◆ Open()

void JoystickDevice::Open ( )
protectedvirtual

Implements HIDDevice.


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