diff options
author | cnlohr <lohr85@gmail.com> | 2016-11-29 03:03:34 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-11-29 03:03:34 -0500 |
commit | 8388ca81fbc6c0a840e81f6fd805b897d378556b (patch) | |
tree | a267870139b2269ec734813e979ef95302398409 /test.c | |
parent | 570309192b066ae1a440988c2a51dc0a17fa2b1a (diff) | |
download | libsurvive-8388ca81fbc6c0a840e81f6fd805b897d378556b.tar.gz libsurvive-8388ca81fbc6c0a840e81f6fd805b897d378556b.tar.bz2 |
Add a basic vive driver. Gotta figure out how to turn it on.
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#include <unistd.h> +#include <stdio.h> + + +#include <survive.h> + +int main() +{ + struct SurviveContext * ctx = survive_init( &ctx ); + + if( !ctx ) + { + fprintf( stderr, "Fatal.\n" ); + return 1; + } + + while(survive_poll(ctx) == 0) + { + + } +} + |