aboutsummaryrefslogtreecommitdiff
path: root/include/survive.h
diff options
context:
space:
mode:
authorJosh Allen <axlecrusher@gmail.com>2017-02-27 21:30:44 -0500
committerJosh Allen <axlecrusher@gmail.com>2017-02-27 21:30:44 -0500
commit711a55ec79fefbefdc3527c89742acf622aaec3c (patch)
treef087cb3e592aa5cabc5c7b3d281260f4657ad671 /include/survive.h
parente8d696e03128242be33eb0734addee645e894635 (diff)
parent51751d4a9f407f526de2b626d44e14690fbef004 (diff)
downloadlibsurvive-711a55ec79fefbefdc3527c89742acf622aaec3c.tar.gz
libsurvive-711a55ec79fefbefdc3527c89742acf622aaec3c.tar.bz2
Merge branch 'master' of github.com:cnlohr/libsurvive
Diffstat (limited to 'include/survive.h')
-rw-r--r--include/survive.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/survive.h b/include/survive.h
index 02c5969..51910a6 100644
--- a/include/survive.h
+++ b/include/survive.h
@@ -24,7 +24,8 @@ struct SurviveObject
{
struct SurviveContext * ctx;
- char codename[4]; //3 letters, null-terminated. Currently HMD, WM0, WM1.
+ char codename[4]; //3 letters, null-terminated. Currently HMD, WM0, WM1.
+ char drivername[4]; //3 letters for driver. Currently "HTC"
int16_t buttonmask;
int16_t axis1;
@@ -85,8 +86,7 @@ struct SurviveObject * survive_get_so_by_name( struct SurviveContext * ctx, cons
//Utilitiy functions.
int survive_simple_inflate( struct SurviveContext * ctx, const char * input, int inlen, char * output, int outlen );
-//TODO: Need to make this do haptic responses for hands.
-int survive_usb_send_magic( struct SurviveContext * ctx, int on );
+int survive_send_magic( struct SurviveContext * ctx, int magic_code, void * data, int datalen );
//Install the calibrator.
void survive_cal_install( struct SurviveContext * ctx );