diff options
author | Mike Turvey <mturvey6@gmail.com> | 2018-01-04 08:47:42 -0700 |
---|---|---|
committer | Mike Turvey <mturvey6@gmail.com> | 2018-01-04 08:47:42 -0700 |
commit | 499b80ae7b538f8e66f5ec8bfa60c7136a3babf5 (patch) | |
tree | 0ef5325a3494099b7c18c085106486fc5b6368f2 /include/libsurvive/survive_types.h | |
parent | f183aa480c549695ac5b481fade04e62f71d1e0a (diff) | |
download | libsurvive-499b80ae7b538f8e66f5ec8bfa60c7136a3babf5.tar.gz libsurvive-499b80ae7b538f8e66f5ec8bfa60c7136a3babf5.tar.bz2 |
Haptic Call Plumbed
The plumbing is now in place for the haptic call.
Left in place a "demo" where haptic is called when a controller's trigger is pulled
Diffstat (limited to 'include/libsurvive/survive_types.h')
-rw-r--r-- | include/libsurvive/survive_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libsurvive/survive_types.h b/include/libsurvive/survive_types.h index fa3eb2f..9a6e148 100644 --- a/include/libsurvive/survive_types.h +++ b/include/libsurvive/survive_types.h @@ -44,6 +44,8 @@ typedef void (*imu_process_func)( SurviveObject * so, int mask, FLT * accelgyro, typedef void (*angle_process_func)( SurviveObject * so, int sensor_id, int acode, uint32_t timecode, FLT length, FLT angle, uint32_t lh); typedef void (*button_process_func)(SurviveObject * so, uint8_t eventType, uint8_t buttonId, uint8_t axis1Id, uint16_t axis1Val, uint8_t axis2Id, uint16_t axis2Val); +typedef int(*haptic_func)(SurviveObject * so, uint8_t reserved, uint16_t pulseHigh , uint16_t pulseLow, uint16_t repeatCount); + //Device drivers (prefix your drivers with "DriverReg") i.e. // REGISTER_LINKTIME( DriverRegHTCVive ); typedef int (*DeviceDriver)( SurviveContext * ctx ); |