Update README.md

This commit is contained in:
Maschell 2016-08-03 21:44:59 +02:00 committed by GitHub
parent aa0ce59f87
commit 0f6d2945fc

View File

@ -53,6 +53,14 @@ setControllerDataFromHID(&buffer,HID_ALL_CONNECTED_DEVICES);
``` ```
This example will add the input from ALL connected HID devices into the created VPADData. This example will add the input from ALL connected HID devices into the created VPADData.
The postion of the mouse cursor can be read from here:
```
#include "controller_patcher/cp_retain_vars.h"
X Value gHID_Mouse.pad_data[0].data[0].X (0-1280)
Y Value gHID_Mouse.pad_data[0].data[0].Y (0-720)
```
#Credits: #Credits:
- Maschell - Maschell
- FIX94 - huge thanks to him and his initally created gc-to-vpad. Was a motivation and base to start all this - FIX94 - huge thanks to him and his initally created gc-to-vpad. Was a motivation and base to start all this