From 9d632b856d97ed8783710f37a1bb8b4d19806887 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 13 Sep 2019 02:47:15 -0400 Subject: [PATCH] Added HidNpadInterfaceType enum. --- nx/include/switch/services/hid.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nx/include/switch/services/hid.h b/nx/include/switch/services/hid.h index 390a3520..7a66a05a 100644 --- a/nx/include/switch/services/hid.h +++ b/nx/include/switch/services/hid.h @@ -330,6 +330,15 @@ typedef enum HidJoyHoldType_Horizontal = 1, ///< Joy-Con held horizontally with HID state orientation adjustment, see \ref HidControllerLayoutType. } HidJoyHoldType; +/// NpadInterfaceType +typedef enum +{ + NpadInterfaceType_Bluetooth = 1, ///< Bluetooth. + NpadInterfaceType_Rail = 2, ///< Rail. + NpadInterfaceType_USB = 3, ///< USB. + NpadInterfaceType_Unknown4 = 4, ///< Unknown. +} HidNpadInterfaceType; + typedef struct touchPosition { u32 id; @@ -792,7 +801,7 @@ Result hidGetSevenSixAxisSensorFusionStrength(float *strength); /// Resets the timestamp for the SevenSixAxisSensor. Only available on [6.0.0+]. Result hidResetSevenSixAxisSensorTimestamp(void); -/// Gets the NpadInterfaceType for the specified controller. +/// Gets the \ref HidNpadInterfaceType for the specified controller. /// Only available on [4.0.0+]. Result hidGetNpadInterfaceType(HidControllerID id, u8 *out);