diff --git a/nx/include/switch/services/hid.h b/nx/include/switch/services/hid.h index 781d507b..9962516f 100644 --- a/nx/include/switch/services/hid.h +++ b/nx/include/switch/services/hid.h @@ -1711,10 +1711,10 @@ Result hidSetNpadAnalogStickUseCenterClamp(bool flag); /** * @brief Assigns the button(s) which trigger the CaptureButton. * @note Only available on [8.0.0+]. - * @param[in] style_set Bitfield of \ref HidNpadStyleTag, exactly 1 bit must be set. + * @param[in] style \ref HidNpadStyleTag, exactly 1 bit must be set. * @param[in] buttons Bitfield of \ref HidNpadButton, multiple bits can be set. */ -Result hidSetNpadCaptureButtonAssignment(u32 style_set, u64 buttons); +Result hidSetNpadCaptureButtonAssignment(HidNpadStyleTag style, u64 buttons); /** * @brief ClearNpadCaptureButtonAssignment diff --git a/nx/source/services/hid.c b/nx/source/services/hid.c index 08d0d0ac..79df633a 100644 --- a/nx/source/services/hid.c +++ b/nx/source/services/hid.c @@ -1437,11 +1437,11 @@ Result hidSetNpadAnalogStickUseCenterClamp(bool flag) { return _hidCmdInBoolAruidNoOut(flag, 134); } -Result hidSetNpadCaptureButtonAssignment(u32 style_set, u64 buttons) { +Result hidSetNpadCaptureButtonAssignment(HidNpadStyleTag style, u64 buttons) { if (hosversionBefore(8,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); - return _hidCmdInU32AruidU64NoOut(style_set, buttons, 135); + return _hidCmdInU32AruidU64NoOut(style, buttons, 135); } Result hidClearNpadCaptureButtonAssignment(void) {