Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
MouseDevice Class Reference
Inheritance diagram for MouseDevice:
Inheritance graph
[legend]
Collaboration diagram for MouseDevice:
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
 
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
 
virtual int AssignIDs (InputDevice startID)
 

Protected Member Functions

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

Member Function Documentation

◆ AddElement()

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

Implements HIDDevice.

◆ AddLogicalDevice()

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

Implements HIDDevice.

◆ GetButtonPresses()

void MouseDevice::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 MouseDevice::GetDevicesAndDescriptions ( std::vector< InputDeviceInfo > &  vDevices) const
virtual

Implements HIDDevice.

◆ Open()

void MouseDevice::Open ( )
protectedvirtual

Implements HIDDevice.


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