From 558125436a6d50e3700816e635c60b516f7de963 Mon Sep 17 00:00:00 2001 From: Kartik Date: Sun, 9 Jul 2017 11:52:46 +0530 Subject: [PATCH] Add PTMU_GetAdapterState --- libctru/include/3ds/services/ptmu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libctru/include/3ds/services/ptmu.h b/libctru/include/3ds/services/ptmu.h index a5822ce..82773ef 100644 --- a/libctru/include/3ds/services/ptmu.h +++ b/libctru/include/3ds/services/ptmu.h @@ -1,3 +1,4 @@ + /** * @file ptmu.h * @brief PTMU service. @@ -40,3 +41,8 @@ Result PTMU_GetPedometerState(u8 *out); */ Result PTMU_GetTotalStepCount(u32 *steps); +/** + * @brief Gets whether the adapter is plugged in or not + * @param out Pointer to write the adapter state to. (0 = not plugged in, 1 = plugged in) + */ +Result PTMU_GetAdapterState(u8 *out);