HID services: Difference between revisions
No edit summary |
|||
Line 1,943: | Line 1,943: | ||
Takes an input s32 entry-index, returns an output bool. | Takes an input s32 entry-index, returns an output bool. | ||
[10.1.0 | [10.1.0-10.2.0] This will now Abort if the s32 is negative or >=5. [11.0.0+] This value must now be unsigned <=4, otherwise 0 is returned. | ||
Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then the output bool is set to [[Settings_services#ButtonConfigSettings|IsFull]] bit0 == 0. Then 0 is returned. | Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then the output bool is set to [[Settings_services#ButtonConfigSettings|IsFull]] bit0 == 0. Then 0 is returned. | ||
Line 1,965: | Line 1,965: | ||
Takes an input s32 entry-index, and a type-0x16 output buffer containing a [[#ButtonConfigEmbedded]]. | Takes an input s32 entry-index, and a type-0x16 output buffer containing a [[#ButtonConfigEmbedded]]. | ||
[10.1.0 | [10.1.0-10.2.0] This will now Abort if the s32 is negative or >=5. | ||
[11.0.0+] This now calls the same func internally as [[#GetButtonConfigStorageEmbedded]], except the [[#StorageName]] isn't exposed. | |||
Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then an error is thrown if [[Settings_services#ButtonConfigSettings|IsFull]] bit0 is clear. Then the data at +0x1C8 is converted to [[#ButtonConfigEmbedded]], copied to output, and returns 0. | Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then an error is thrown if [[Settings_services#ButtonConfigSettings|IsFull]] bit0 is clear. Then the data at +0x1C8 is converted to [[#ButtonConfigEmbedded]], copied to output, and returns 0. | ||
Line 1,987: | Line 1,989: | ||
Takes an input s32 entry-index, and a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]]. | Takes an input s32 entry-index, and a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]]. | ||
[10.1.0 | [10.1.0-10.2.0] This will now Abort if the s32 is negative or >=5. | ||
[11.0.0+] This now calls the same func internally as [[#SetButtonConfigStorageEmbedded]], except the [[#StorageName]] isn't exposed. | |||
If the input config matches the [[#IsDefaultButtonConfigEmbedded|default]], this first does: | If the input config matches the [[#IsDefaultButtonConfigEmbedded|default]], this first does: | ||
Line 2,012: | Line 2,016: | ||
Takes an input s32 entry-index, no output. | Takes an input s32 entry-index, no output. | ||
[10.1.0 | [10.1.0-10.2.0] This will now Abort if the s32 is negative or >=5. [11.0.0+] When the input s32 is larger than unsigned value 4, an error is returned. | ||
Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then an error is thrown if [[Settings_services#ButtonConfigSettings|IsFull]] bit0 is clear. Then the data at +0x1C8 size 0x3E0 is cleared, IsFull bit0 is cleared, [[Settings_services#SetButtonConfigSettingsEmbedded|SetButtonConfigSettingsEmbedded]] is used with the updated array, and then returns 0. | Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then an error is thrown if [[Settings_services#ButtonConfigSettings|IsFull]] bit0 is clear. Then the data at +0x1C8 size 0x3E0 is cleared, IsFull bit0 is cleared, [[Settings_services#SetButtonConfigSettingsEmbedded|SetButtonConfigSettingsEmbedded]] is used with the updated array, and then returns 0. | ||
Line 2,019: | Line 2,023: | ||
Takes an input s32 entry-index, no output. | Takes an input s32 entry-index, no output. | ||
Same as [[# | Same as [[#DeleteButtonConfigStorageEmbedded]] except with different setsys cmds. | ||
== DeleteButtonConfigStorageLeft == | == DeleteButtonConfigStorageLeft == | ||
Takes an input s32 entry-index, no output. | Takes an input s32 entry-index, no output. | ||
Same as [[# | Same as [[#DeleteButtonConfigStorageEmbedded]] except with different setsys cmds. | ||
== DeleteButtonConfigStorageRight == | == DeleteButtonConfigStorageRight == | ||
Takes an input s32 entry-index, no output. | Takes an input s32 entry-index, no output. | ||
Same as [[# | Same as [[#DeleteButtonConfigStorageEmbedded]] except with different setsys cmds. | ||
== IsUsingCustomButtonConfig == | == IsUsingCustomButtonConfig == | ||
Line 2,072: | Line 2,076: | ||
== GetButtonConfigStorageEmbedded == | == GetButtonConfigStorageEmbedded == | ||
Takes an input s32, a type-0x16 output buffer containing a [[#ButtonConfigEmbedded]], a type-0x1A output buffer containing a [[#StorageName]]. | Takes an input s32, a type-0x16 output buffer containing a [[#ButtonConfigEmbedded]], a type-0x1A output buffer containing a [[#StorageName]]. | ||
When the input s32 is larger than unsigned value 4, an error is returned. | |||
== GetButtonConfigStorageFull == | == GetButtonConfigStorageFull == | ||
Line 2,084: | Line 2,090: | ||
== SetButtonConfigStorageEmbedded == | == SetButtonConfigStorageEmbedded == | ||
Takes an input s32, a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]], a type-0x19 input buffer containing a [[#StorageName]]. | Takes an input s32, a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]], a type-0x19 input buffer containing a [[#StorageName]]. | ||
When the input s32 is larger than unsigned value 4, this will immediately return (this cmd always returns 0 regardless). | |||
== SetButtonConfigStorageFull == | == SetButtonConfigStorageFull == |