![]() IOReturn tIOReturn = IOHIDDeviceSetReport(deviceRef, ![]() ![]() I feel like I am missing a simple step here, so if anyone has any ideas, help or a solution please let me know.Įxample Code of how I'm trying to send a report (is is returning success): CFIndex len = 64 (I know not all these examples are for between Mac an a PS3 controller)Ī lot of people seem to be talking about this and even doing it (I refuse to believe no one has got this working) but I can't seem to find anything about actually how to do it that works! I've found several sites that list data examples: However, I can't work out what data I should be sending. From looking on the web (for petty much half a day) I've got what I think is a working send method which uses IOHIDDeviceSetReport(). Looking though the sample code Apple provides for IOHID there isn't much I can see on setting things on the HID device, only receiving data. However, today I decided I wanted to start setting the LEDs on the back of the device and triggering the rumble motors, but I just can't get it to work! I've managed to look though the sample code and connect to my controller, receive a stream of data and parse it (Everything, including the accelerometer and gyro). I've been playing around with the HID part of IOKit lately on my Mac with a PS3 controller. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |