hid: Adjusted param for hidSetNpadCaptureButtonAssignment.

This commit is contained in:
yellows8 2020-11-27 15:11:31 -05:00 committed by fincs
parent 27b43dc53b
commit 9bc156a42e
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60
2 changed files with 4 additions and 4 deletions

View File

@ -1711,10 +1711,10 @@ Result hidSetNpadAnalogStickUseCenterClamp(bool flag);
/** /**
* @brief Assigns the button(s) which trigger the CaptureButton. * @brief Assigns the button(s) which trigger the CaptureButton.
* @note Only available on [8.0.0+]. * @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. * @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 * @brief ClearNpadCaptureButtonAssignment

View File

@ -1437,11 +1437,11 @@ Result hidSetNpadAnalogStickUseCenterClamp(bool flag) {
return _hidCmdInBoolAruidNoOut(flag, 134); return _hidCmdInBoolAruidNoOut(flag, 134);
} }
Result hidSetNpadCaptureButtonAssignment(u32 style_set, u64 buttons) { Result hidSetNpadCaptureButtonAssignment(HidNpadStyleTag style, u64 buttons) {
if (hosversionBefore(8,0,0)) if (hosversionBefore(8,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _hidCmdInU32AruidU64NoOut(style_set, buttons, 135); return _hidCmdInU32AruidU64NoOut(style, buttons, 135);
} }
Result hidClearNpadCaptureButtonAssignment(void) { Result hidClearNpadCaptureButtonAssignment(void) {