From 9533ddefcf8af901ebc0ff0b2ac503b5af2523b8 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Fri, 13 Apr 2018 14:45:16 -0600 Subject: Remove SurviveObject if they fail to configure; prevents issues calibrating with HMD when controllers are off --- include/libsurvive/survive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libsurvive/survive.h') diff --git a/include/libsurvive/survive.h b/include/libsurvive/survive.h index 93af4c0..66993df 100644 --- a/include/libsurvive/survive.h +++ b/include/libsurvive/survive.h @@ -327,6 +327,7 @@ void RegisterDriver(const char *name, void *data); // For device drivers to call. This actually attaches them. int survive_add_object(SurviveContext *ctx, SurviveObject *obj); +void survive_remove_object(SurviveContext *ctx, SurviveObject *obj); void survive_add_driver(SurviveContext *ctx, void *payload, DeviceDriverCb poll, DeviceDriverCb close, DeviceDriverMagicCb magic); -- cgit v1.2.3