diff options
author | cnlohr <lohr85@gmail.com> | 2017-02-25 23:52:48 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-02-25 23:52:48 -0500 |
commit | 55cedfc6a6b035d6eb54457782818fef61cae500 (patch) | |
tree | ca11020aeb8970830a6f52ada199767686078fd4 /calibrate.c | |
parent | f92f5dc93cbb53a99da51984541a7e4a70605639 (diff) | |
download | libsurvive-55cedfc6a6b035d6eb54457782818fef61cae500.tar.gz libsurvive-55cedfc6a6b035d6eb54457782818fef61cae500.tar.bz2 |
Huge shift: Put HTC vive into its own file, to free up the rest of the system for libsurvive.
Diffstat (limited to 'calibrate.c')
-rw-r--r-- | calibrate.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/calibrate.c b/calibrate.c index 04ea9a8..f50bad3 100644 --- a/calibrate.c +++ b/calibrate.c @@ -18,11 +18,11 @@ void HandleKey( int keycode, int bDown ) if( keycode == 'O' || keycode == 'o' ) { - survive_usb_send_magic(ctx,1); + survive_send_magic(ctx,1,0,0); } if( keycode == 'F' || keycode == 'f' ) { - survive_usb_send_magic(ctx,0); + survive_send_magic(ctx,0,0,0); } } @@ -40,6 +40,7 @@ int buffertimeto[32*3]; void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode, uint32_t length ) { +// if( timeinsweep < 0 ) return; survive_default_light_process( so, sensor_id, acode, timeinsweep, timecode, length ); if( acode == -1 ) return; @@ -95,6 +96,10 @@ void my_angle_process( struct SurviveObject * so, int sensor_id, int acode, uint void * GuiThread( void * v ) { short screenx, screeny; + CNFGBGColor = 0x000000; + CNFGDialogColor = 0x444444; + CNFGSetup( "Survive GUI Debug", 640, 480 ); + while(1) { CNFGHandleInput(); @@ -148,9 +153,6 @@ int main() survive_cal_install( ctx ); - CNFGBGColor = 0x000000; - CNFGDialogColor = 0x444444; - CNFGSetup( "Survive GUI Debug", 640, 480 ); OGCreateThread( GuiThread, 0 ); @@ -164,5 +166,6 @@ int main() { //Do stuff. } + printf( "Returned\n" ); } |