mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
hidsys: use hosversionBetween
This commit is contained in:
parent
8e93933157
commit
4ac0a9ffdc
@ -678,56 +678,56 @@ Result hidsysIsButtonConfigStorageRightEmpty(s32 index, bool *out) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageEmbeddedDeprecated(s32 index, HidcfgButtonConfigEmbedded *config) {
|
Result hidsysGetButtonConfigStorageEmbeddedDeprecated(s32 index, HidcfgButtonConfigEmbedded *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1259);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1259);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageFullDeprecated(s32 index, HidcfgButtonConfigFull *config) {
|
Result hidsysGetButtonConfigStorageFullDeprecated(s32 index, HidcfgButtonConfigFull *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1260);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1260);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageLeftDeprecated(s32 index, HidcfgButtonConfigLeft *config) {
|
Result hidsysGetButtonConfigStorageLeftDeprecated(s32 index, HidcfgButtonConfigLeft *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1261);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1261);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetButtonConfigStorageRightDeprecated(s32 index, HidcfgButtonConfigRight *config) {
|
Result hidsysGetButtonConfigStorageRightDeprecated(s32 index, HidcfgButtonConfigRight *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1262);
|
return _hidsysCmdInU32OutBufFixed((u32)index, config, sizeof(*config), 1262);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageEmbeddedDeprecated(s32 index, const HidcfgButtonConfigEmbedded *config) {
|
Result hidsysSetButtonConfigStorageEmbeddedDeprecated(s32 index, const HidcfgButtonConfigEmbedded *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1263);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1263);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageFullDeprecated(s32 index, const HidcfgButtonConfigFull *config) {
|
Result hidsysSetButtonConfigStorageFullDeprecated(s32 index, const HidcfgButtonConfigFull *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1264);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1264);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageLeftDeprecated(s32 index, const HidcfgButtonConfigLeft *config) {
|
Result hidsysSetButtonConfigStorageLeftDeprecated(s32 index, const HidcfgButtonConfigLeft *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1265);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1265);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysSetButtonConfigStorageRightDeprecated(s32 index, const HidcfgButtonConfigRight *config) {
|
Result hidsysSetButtonConfigStorageRightDeprecated(s32 index, const HidcfgButtonConfigRight *config) {
|
||||||
if (hosversionBefore(10,0,0) || hosversionAtLeast(13,0,0))
|
if (!hosversionBetween(10,13))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1266);
|
return _hidsysCmdInU32InBufFixedNoOut((u32)index, config, sizeof(*config), 1266);
|
||||||
|
Loading…
Reference in New Issue
Block a user