Playstation 3 Motion Controller(PS MOVE) as a Generic HID
Submitted by Acxie on Sat, 10/02/2010 - 00:01
When connected by Bluetooth via MotionInJoy, the PlayStation Move will show up as a generic HID device with VID 8888, and PID 0308.
I have make a demo that can read the Motion controller input data and lighted the glowing ball.
This demo based on the hid demo from http://www.lvr.com/hidpage.htm#MyExampleCode.
This demo program only provided a way to receive the input report and send out report.
Attached file is the source code of c# and vs2008 project.
to talk to the PlayStation Move through windows api "HidD_SetFeature" and "HidD_GetFeature"
HidD_SetFeature:
outFeatureReportBuffer[0] = 0x00(Motioninjoy virtual gamepad(genric HID) report ID );
outFeatureReportBuffer[1] = 0xCC(command:0x00 will be send as interrupt mode,0x01 will be send as control mode);
outFeatureReportBuffer[2] = 0xDD(PS MOVE REPORT ID,0x02 can lighted the glowing ball,other mybe can vibration special feature..... );
outFeatureReportBuffer[3] = 0xYY;(will be send to ps move as his report)
outFeatureReportBuffer[4] = 0xYY;(will be send to ps move as his report)
......
HidD_GetFeature:
- 0x00:(Motioninjoy virtual gamepad(genric HID) report ID );
- 0xYY:(raw data from PS MOVE, latest data)
- 0xYY
- ......
Please help to post the information you get in our wiki
more information coming later…
| Attachment | Size |
|---|---|
| 203.7 KB |
Blog:
- Acxie's blog
- 103055 reads