Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KeyboardDevice Class Reference
Inheritance diagram for KeyboardDevice:
Inheritance graph
[legend]
Collaboration diagram for KeyboardDevice:
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)
 

Static Public Member Functions

static bool DeviceButtonToMacVirtualKey (DeviceButton button, UInt8 &iMacVKOut)
 

Protected Member Functions

bool AddLogicalDevice (int usagePage, int usage)
 
void AddElement (int usagePage, int usage, IOHIDElementCookie cookie, const CFDictionaryRef properties)
 
void Open ()
 
- 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 KeyboardDevice::AddElement ( int  usagePage,
int  usage,
IOHIDElementCookie  cookie,
const CFDictionaryRef  properties 
)
protectedvirtual

Implements HIDDevice.

◆ AddLogicalDevice()

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

Implements HIDDevice.

◆ GetButtonPresses()

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

Implements HIDDevice.

◆ Open()

void KeyboardDevice::Open ( )
protectedvirtual

Implements HIDDevice.


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