mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
hid: Adjusted param for hidSetNpadCaptureButtonAssignment.
This commit is contained in:
parent
27b43dc53b
commit
9bc156a42e
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user