From b528f822966cf8978cbe28936ae1f15c3032e1d2 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Sun, 12 Mar 2017 15:17:47 -0400 Subject: Update to posers, etc... Still not working. --- src/survive_vive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/survive_vive.c') diff --git a/src/survive_vive.c b/src/survive_vive.c index 7da2897..17c9dd5 100644 --- a/src/survive_vive.c +++ b/src/survive_vive.c @@ -89,8 +89,7 @@ void survive_usb_close( SurviveContext * t ); int survive_usb_init( SurviveViveData * sv, SurviveObject * hmd, SurviveObject *wm0, SurviveObject * wm1 ); int survive_usb_poll( SurviveContext * ctx ); int survive_get_config( char ** config, SurviveViveData * ctx, int devno, int interface, int send_extra_magic ); - - +int survive_vive_send_magic(struct SurviveContext * ctx, void * drv, int magic_code, void * data, int datalen ); static void handle_transfer(struct libusb_transfer* transfer) @@ -301,6 +300,7 @@ int survive_usb_init( struct SurviveViveData * sv, struct SurviveObject * hmd, s SV_INFO( "All devices attached." ); + survive_vive_send_magic(ctx, sv, 1, 0, 0 ); //libUSB initialized. Continue. return 0; -- cgit v1.2.3