From dba9755061b1a11eb23494abeb9dcc9d81e3933b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger?= Date: Wed, 30 Aug 2017 10:37:26 +0200 Subject: [PATCH] Added vigem_target_is_attached --- ViGEmClient.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ViGEmClient.h b/ViGEmClient.h index 64f8416..48f5f95 100644 --- a/ViGEmClient.h +++ b/ViGEmClient.h @@ -421,4 +421,19 @@ ULONG vigem_target_get_index(PVIGEM_TARGET target); */ VIGEM_TARGET_TYPE vigem_target_get_type(PVIGEM_TARGET target); +/** + * \fn BOOL vigem_target_is_attached(PVIGEM_TARGET target); + * + * \brief Returns TRUE if the provided target device object is currently attached to the bus, + * FALSE otherwise. + * + * \author Benjamin "Nefarius" Höglinger + * \date 30.08.2017 + * + * \param target The target device object. + * + * \return TRUE if device is attached to the bus, FALSE otherwise. + */ +BOOL vigem_target_is_attached(PVIGEM_TARGET target); + #endif // ViGEmClient_h__