From 3605af8358cca06c068ec26657a5b7fcc1a25128 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 4 Aug 2016 09:44:54 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index a77e266..42a3514 100644 --- a/README.md +++ b/README.md @@ -48,11 +48,24 @@ Take a look at the [HID to VPAD](https://github.com/Maschell/hid_to_vpad) source Once you set up everything correctly, you can use the "setControllerDataFromHID" method to fill a VPADData pointer. Example: ``` +#include "controller_patcher/controller_patcher.h" + VPADData buffer; setControllerDataFromHID(&buffer,HID_ALL_CONNECTED_DEVICES); ``` This example will add the input from ALL connected HID devices into the created VPADData. +To remap the gamepad buttons. Use something like this: +``` +#include "controller_patcher/cp_retain_vars.h" +#include "controller_patcher/controller_patcher.h" + + if(gButtonRemappingConfigDone && gConfig_done){ + buttonRemapping(buffer); + } +``` + + The postion of the mouse cursor can be read from here: ``` #include "controller_patcher/cp_retain_vars.h"