diff options
author | Mike Turvey <mturvey6@gmail.com> | 2018-01-03 18:58:43 -0700 |
---|---|---|
committer | Mike Turvey <mturvey6@gmail.com> | 2018-01-03 18:59:48 -0700 |
commit | f183aa480c549695ac5b481fade04e62f71d1e0a (patch) | |
tree | 63e956b42d54b12f7d7c943023c4e587ebad50b1 /src/survive_process.c | |
parent | ffb879d7a69c3c38937ff0159de0a5d1db99b713 (diff) | |
download | libsurvive-f183aa480c549695ac5b481fade04e62f71d1e0a.tar.gz libsurvive-f183aa480c549695ac5b481fade04e62f71d1e0a.tar.bz2 |
Controller Buttons Fully Implemented
Fully plumbed support for controller buttons
Also, commented haptic call because it messed with the vive_magic calls, given where I had it.
Diffstat (limited to 'src/survive_process.c')
-rw-r--r-- | src/survive_process.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/survive_process.c b/src/survive_process.c index 3af2da9..eaed881 100644 --- a/src/survive_process.c +++ b/src/survive_process.c @@ -63,6 +63,17 @@ void survive_default_angle_process( SurviveObject * so, int sensor_id, int acode } } +void survive_default_button_process(SurviveObject * so, uint8_t eventType, uint8_t buttonId, uint8_t axis1Id, uint16_t axis1Val, uint8_t axis2Id, uint16_t axis2Val) +{ + // do nothing. + printf("ButtonEntry: eventType:%x, buttonId:%d, axis1:%d, axis1Val:%8.8x, axis2:%d, axis2Val:%8.8x\n", + eventType, + buttonId, + axis1Id, + axis1Val, + axis2Id, + axis2Val); +} void survive_default_imu_process( SurviveObject * so, int mask, FLT * accelgyromag, uint32_t timecode, int id ) { |