From bcb239a7be73bbfba57f625ca80045aed4c2115f Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 27 Feb 2006 00:44:30 +0000 Subject: [PATCH] Add SetReport. --- stepmania/src/archutils/Darwin/HIDDevice.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/archutils/Darwin/HIDDevice.h b/stepmania/src/archutils/Darwin/HIDDevice.h index 7357c94b93..0fdb59c42c 100644 --- a/stepmania/src/archutils/Darwin/HIDDevice.h +++ b/stepmania/src/archutils/Darwin/HIDDevice.h @@ -82,6 +82,12 @@ protected: { CALL( m_Queue, addElement, IOHIDElementCookie(cookie), 0 ); } + + // Perform a synchronous set report on the HID interface. + inline IOReturn SetReport( IOHIDReportType type, UInt32 reportID, void *buffer, UInt32 size, UInt32 timeoutMS ) + { + return CALL( m_Interface, setReport, type, reportID, buffer, size, timeoutMS, NULL, NULL, NULL ); + } public: HIDDevice(); virtual ~HIDDevice();