Controller Applet: Difference between revisions

No edit summary
No edit summary
Line 39: Line 39:
| 0xB || 0x1 || <code>nn::hid::system::ControllerSupportCaller</code>. Always zero except with ShowControllerFirmwareUpdateForSystem, which sets this to the input param.
| 0xB || 0x1 || <code>nn::hid::system::ControllerSupportCaller</code>. Always zero except with ShowControllerFirmwareUpdateForSystem, which sets this to the input param.
|-
|-
| 0xC || 0x4 || Output from [[HID_services#GetSupportedNpadStyleSet|GetSupportedNpadStyleSet]].
| 0xC || 0x4 || Output from [[HID_services#GetSupportedNpadStyleSet|GetSupportedNpadStyleSet]]. With ShowControllerSupportForSystem on pre-3.0.0 this is value 0.
|-
|-
| 0x10 || 0x4 || Output from [[HID_services|GetNpadJoyHoldType]].
| 0x10 || 0x4 || Output from [[HID_services|GetNpadJoyHoldType]]. With ShowControllerSupportForSystem on pre-3.0.0 this is value 1.
|}
|}


Line 87: Line 87:
| [3.0.0+] ShowControllerFirmwareUpdate || 2 ||  
| [3.0.0+] ShowControllerFirmwareUpdate || 2 ||  
|}
|}
In sdknso there's two funcs which expose ShowControllerSupport: one which has a param for the output [[#ControllerSupportResultInfo]], and one that saves that to stack and ignores it.
ShowControllerSupportForSystem has equivalent funcs for the above two funcs, which are the same except [[#ControllerSupportArgPrivate|Flag1]] is set to 1 and [[#ControllerSupportArgPrivate|Flag0]] is set to the input bool.
ShowControllerFirmwareUpdateForSystem is the same as ShowControllerFirmwareUpdate, except [[#ControllerSupportArgPrivate|Flag1]] is set to 1 and [[#ControllerSupportArgPrivate|ControllerSupportCaller]] is set to the input param.


== ControllerSupportResultInfo ==
== ControllerSupportResultInfo ==