libnx  v4.2.1
hidsys.h
Go to the documentation of this file.
1 /**
2  * @file hidsys.h
3  * @brief hid:sys service IPC wrapper.
4  * @author exelix, yellows8, ndeadly
5  */
6 #pragma once
7 #include "../types.h"
8 #include "../kernel/event.h"
9 #include "../services/hid.h"
10 #include "../services/btdrv_types.h"
11 #include "../sf/service.h"
12 
13 /// Selects what button to map to.
14 typedef enum {
19  HidcfgDigitalButtonAssignment_StickL = 4, ///< Left Stick Button
20  HidcfgDigitalButtonAssignment_StickR = 5, ///< Right Stick Button
25  HidcfgDigitalButtonAssignment_Select = 10, ///< Select / Minus
26  HidcfgDigitalButtonAssignment_Start = 11, ///< Start / Plus
31  HidcfgDigitalButtonAssignment_LeftSL = 16, ///< SL on Left controller.
32  HidcfgDigitalButtonAssignment_LeftSR = 17, ///< SR on Left controller.
33  HidcfgDigitalButtonAssignment_RightSL = 18, ///< SL on Right controller.
34  HidcfgDigitalButtonAssignment_RightSR = 19, ///< SR on Right controller.
37  HidcfgDigitalButtonAssignment_Invalid = 22, ///< Invalid / Disabled
39 
40 /// AnalogStickRotation
41 typedef enum {
46 
47 /// UniquePadType
48 typedef enum {
49  HidsysUniquePadType_Embedded = 0, ///< Embedded
50  HidsysUniquePadType_FullKeyController = 1, ///< FullKeyController
51  HidsysUniquePadType_RightController = 2, ///< RightController
52  HidsysUniquePadType_LeftController = 3, ///< LeftController
53  HidsysUniquePadType_DebugPadController = 4, ///< DebugPadController
55 
56 /// UniquePadId for a controller.
57 typedef struct {
58  u64 id; ///< UniquePadId
60 
61 /// UniquePadSerialNumber
62 typedef struct {
63  char serial_number[0x10]; ///< SerialNumber
65 
66 /// Mini Cycle struct for \ref HidsysNotificationLedPattern.
67 typedef struct {
68  u8 ledIntensity; ///< Mini Cycle X LED Intensity.
69  u8 transitionSteps; ///< Fading Transition Steps to Mini Cycle X (Uses PWM). Value 0x0: Instant. Each step duration is based on HidsysNotificationLedPattern::baseMiniCycleDuration.
70  u8 finalStepDuration; ///< Final Step Duration Multiplier of Mini Cycle X. Value 0x0: 12.5ms, 0x1 - xF: 1x - 15x. Value is a Multiplier of HidsysNotificationLedPattern::baseMiniCycleDuration.
71  u8 pad;
73 
74 /// Structure for \ref hidsysSetNotificationLedPattern.
75 /// See also: https://switchbrew.org/wiki/HID_services#NotificationLedPattern
76 /// Only the low 4bits of each used byte in this struct is used.
77 typedef struct {
78  u8 baseMiniCycleDuration; ///< Mini Cycle Base Duration. Value 0x1-0xF: 12.5ms - 187.5ms. Value 0x0 = 0ms/OFF.
79  u8 totalMiniCycles; ///< Number of Mini Cycles + 1. Value 0x0-0xF: 1 - 16 mini cycles.
80  u8 totalFullCycles; ///< Number of Full Cycles. Value 0x1-0xF: 1 - 15 full cycles. Value 0x0 is repeat forever, but if baseMiniCycleDuration is set to 0x0, it does the 1st Mini Cycle with a 12.5ms step duration and then the LED stays on with startIntensity.
81  u8 startIntensity; ///< LED Start Intensity. Value 0x0=0% - 0xF=100%.
82 
83  HidsysNotificationLedPatternCycle miniCycles[16]; ///< Mini Cycles
84 
85  u8 unk_x44[0x2]; ///< Unknown
86  u8 pad_x46[0x2]; ///< Padding
88 
89 /// ButtonConfigEmbedded
90 typedef struct {
91  u8 unk_x0[0x2C8];
93 
94 /// ButtonConfigFull
95 typedef struct {
96  u8 unk_x0[0x2C8];
98 
99 /// ButtonConfigLeft
100 typedef struct {
101  u8 unk_x0[0x1C8];
103 
104 /// ButtonConfigRight
105 typedef struct {
106  u8 unk_x0[0x1A0];
108 
109 /// AnalogStickAssignment
110 typedef struct {
111  u32 rotation; ///< \ref HidcfgAnalogStickRotation
112  u8 is_paired_stick_assigned; ///< IsPairedStickAssigned
113  u8 reserved[3]; ///< Reserved
115 
116 /// ButtonConfigEmbedded
117 typedef struct {
118  u32 hardware_button_left; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonLeft
119  u32 hardware_button_up; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonUp
120  u32 hardware_button_right; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonRight
121  u32 hardware_button_down; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonDown
122  u32 hardware_button_a; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonA
123  u32 hardware_button_b; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonB
124  u32 hardware_button_x; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonX
125  u32 hardware_button_y; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonY
126  u32 hardware_button_stick_l; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStickL
127  u32 hardware_button_stick_r; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStickR
128  u32 hardware_button_l; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonL
129  u32 hardware_button_r; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonR
130  u32 hardware_button_zl; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonZL
131  u32 hardware_button_zr; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonZR
132  u32 hardware_button_select; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonSelect
133  u32 hardware_button_start; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStart
134  u32 hardware_button_capture; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonCapture
138 
139 /// ButtonConfigFull
140 typedef struct {
141  u32 hardware_button_left; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonLeft
142  u32 hardware_button_up; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonUp
143  u32 hardware_button_right; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonRight
144  u32 hardware_button_down; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonDown
145  u32 hardware_button_a; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonA
146  u32 hardware_button_b; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonB
147  u32 hardware_button_x; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonX
148  u32 hardware_button_y; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonY
149  u32 hardware_button_stick_l; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStickL
150  u32 hardware_button_stick_r; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStickR
151  u32 hardware_button_l; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonL
152  u32 hardware_button_r; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonR
153  u32 hardware_button_zl; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonZL
154  u32 hardware_button_zr; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonZR
155  u32 hardware_button_select; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonSelect
156  u32 hardware_button_start; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStart
157  u32 hardware_button_capture; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonCapture
161 
162 /// ButtonConfigLeft
163 typedef struct {
164  u32 hardware_button_left; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonLeft
165  u32 hardware_button_up; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonUp
166  u32 hardware_button_right; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonRight
167  u32 hardware_button_down; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonDown
168  u32 hardware_button_stick_l; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStickL
169  u32 hardware_button_l; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonL
170  u32 hardware_button_zl; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonZL
171  u32 hardware_button_select; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonSelect
172  u32 hardware_button_left_sl; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonLeftSL
173  u32 hardware_button_left_sr; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonLeftSR
174  u32 hardware_button_capture; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonCapture
177 
178 /// ButtonConfigRight
179 typedef struct {
180  u32 hardware_button_a; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonA
181  u32 hardware_button_b; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonB
182  u32 hardware_button_x; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonX
183  u32 hardware_button_y; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonY
184  u32 hardware_button_stick_r; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStickR
185  u32 hardware_button_r; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonR
186  u32 hardware_button_zr; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonZR
187  u32 hardware_button_start; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonStart
188  u32 hardware_button_right_sl; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonRightSL
189  u32 hardware_button_right_sr; ///< \ref HidcfgDigitalButtonAssignment HardwareButtonRightSR
192 
193 /// StorageName
194 typedef struct {
195  u8 name[0x81]; ///< UTF-8 NUL-terminated name string.
197 
198 /// Initialize hidsys.
200 
201 /// Exit hidsys.
202 void hidsysExit(void);
203 
204 /// Gets the Service object for the actual hidsys service session.
206 
207 /**
208  * @brief SendKeyboardLockKeyEvent
209  * @param[in] events Bitfield of \ref HidKeyboardLockKeyEvent.
210  */
212 
213 /**
214  * @brief Gets an Event which is signaled when HidHomeButtonState is updated.
215  * @note The Event must be closed by the user once finished with it.
216  * @note This generally shouldn't be used, since AM-sysmodule uses it internally.
217  * @param[out] out_event Output Event.
218  * @param[in] Event autoclear.
219 **/
220 Result hidsysAcquireHomeButtonEventHandle(Event* out_event, bool autoclear);
221 
222 /**
223  * @brief Activates the HomeButton sharedmem.
224  * @note This generally shouldn't be used, since AM-sysmodule uses it internally.
225 **/
227 
228 /**
229  * @brief Gets an Event which is signaled when HidSleepButtonState is updated.
230  * @note The Event must be closed by the user once finished with it.
231  * @note This generally shouldn't be used, since AM-sysmodule uses it internally.
232  * @param[out] out_event Output Event.
233  * @param[in] Event autoclear.
234 **/
235 Result hidsysAcquireSleepButtonEventHandle(Event* out_event, bool autoclear);
236 
237 /**
238  * @brief Activates the SleepButton sharedmem.
239  * @note This generally shouldn't be used, since AM-sysmodule uses it internally.
240 **/
242 
243 /**
244  * @brief Gets an Event which is signaled when HidCaptureButtonState is updated.
245  * @note The Event must be closed by the user once finished with it.
246  * @note This generally shouldn't be used, since AM-sysmodule uses it internally.
247  * @param[out] out_event Output Event.
248  * @param[in] Event autoclear.
249 **/
250 Result hidsysAcquireCaptureButtonEventHandle(Event* out_event, bool autoclear);
251 
252 /**
253  * @brief Activates the CaptureButton sharedmem.
254  * @note This generally shouldn't be used, since AM-sysmodule uses it internally.
255 **/
257 
258 /**
259  * @brief Gets the SupportedNpadStyleSet for the CallerApplet. applet must be initialized in order to use this (uses \ref appletGetAppletResourceUserIdOfCallerApplet).
260  * @note Only available on [6.0.0+].
261  * @param[out] out Bitmask of \ref HidNpadStyleTag.
262  */
264 
265 /**
266  * @brief Gets the \ref HidNpadInterfaceType for the specified controller.
267  * @note Only available on [10.0.0+].
268  * @param[in] id \ref HidNpadIdType
269  * @param[out] out \ref HidNpadInterfaceType
270  */
272 
273 /**
274  * @brief GetNpadLeftRightInterfaceType
275  * @note Only available on [10.0.0+].
276  * @param[in] id \ref HidNpadIdType
277  * @param[out] out0 \ref HidNpadInterfaceType
278  * @param[out] out1 \ref HidNpadInterfaceType
279  */
281 
282 /**
283  * @brief HasBattery
284  * @note Only available on [10.0.0+].
285  * @param[in] id \ref HidNpadIdType
286  * @param[out] out Output flag.
287  */
288 Result hidsysHasBattery(HidNpadIdType id, bool *out);
289 
290 /**
291  * @brief HasLeftRightBattery
292  * @note Only available on [10.0.0+].
293  * @param[in] id \ref HidNpadIdType
294  * @param[out] out0 Output flag.
295  * @param[out] out1 Output flag.
296  */
297 Result hidsysHasLeftRightBattery(HidNpadIdType id, bool *out0, bool *out1);
298 
299 /**
300  * @brief Gets the UniquePadIds for the specified controller.
301  * @note Only available on [3.0.0+].
302  * @param[in] id \ref HidNpadIdType
303  * @param[out] unique_pad_ids Output array of \ref HidsysUniquePadId.
304  * @param[in] count Max number of entries for the unique_pad_ids array.
305  * @param[out] total_out Total output array entries. Optional, can be NULL.
306  */
307 Result hidsysGetUniquePadsFromNpad(HidNpadIdType id, HidsysUniquePadId *unique_pad_ids, s32 count, s32 *total_out);
308 
309 /**
310  * @brief EnableAppletToGetInput
311  * @param[in] enable Input flag.
312 **/
314 
315 /**
316  * @brief AcquireUniquePadConnectionEventHandle
317  * @param[out] out_event Output Event.
318  */
320 
321 /**
322  * @brief Gets a list of all UniquePadIds.
323  * @param[out] unique_pad_ids Output array of \ref HidsysUniquePadId.
324  * @param[in] count Max number of entries for the unique_pad_ids array.
325  * @param[out] total_out Total output array entries. Optional, can be NULL.
326  */
327 Result hidsysGetUniquePadIds(HidsysUniquePadId *unique_pad_ids, s32 count, s32 *total_out);
328 
329 /**
330  * @brief GetUniquePadBluetoothAddress
331  * @note Only available on [3.0.0+].
332  * @param[in] unique_pad_id \ref HidsysUniquePadId
333  * @param[out] address \ref BtdrvAddress
334  */
336 
337 /**
338  * @brief DisconnectUniquePad
339  * @note Only available on [3.0.0+].
340  * @param[in] unique_pad_id \ref HidsysUniquePadId
341  */
343 
344 /**
345  * @brief GetUniquePadType
346  * @note Only available on [5.0.0+].
347  * @param[in] unique_pad_id \ref HidsysUniquePadId
348  * @param[out] pad_type \ref HidsysUniquePadType
349  */
351 
352 /**
353  * @brief GetUniquePadInterface
354  * @note Only available on [5.0.0+].
355  * @param[in] unique_pad_id \ref HidsysUniquePadId
356  * @param[out] interface \ref HidNpadInterfaceType
357  */
359 
360 /**
361  * @brief Gets the \ref HidsysUniquePadSerialNumber.
362  * @note Only available on [5.0.0+].
363  * @param[in] unique_pad_id \ref HidsysUniquePadId
364  * @param[out] serial \ref HidsysUniquePadSerialNumber
365  */
367 
368 /**
369  * @brief GetUniquePadControllerNumber
370  * @note Only available on [5.0.0+].
371  * @param[in] unique_pad_id \ref HidsysUniquePadId
372  * @param[out] number Controller number.
373  */
375 
376 /**
377  * @brief Sets the HOME-button notification LED pattern, for the specified controller.
378  * @note Generally this should only be used if \ref hidsysSetNotificationLedPatternWithTimeout is not usable.
379  * @note Only available on [7.0.0+].
380  * @param[in] pattern \ref HidsysNotificationLedPattern
381  * @param[in] unique_pad_id \ref HidsysUniquePadId
382  */
384 
385 /**
386  * @brief Sets the HOME-button notification LED pattern, for the specified controller. The LED will automatically be disabled once the specified timeout occurs.
387  * @note Only available on [9.0.0+], and with controllers which have the [9.0.0+] firmware installed.
388  * @param[in] pattern \ref HidsysNotificationLedPattern
389  * @param[in] unique_pad_id \ref HidsysUniquePadId
390  * @param[in] timeout Timeout in nanoseconds.
391  */
393 
394 /**
395  * @brief IsUsbFullKeyControllerEnabled
396  * @note Only available on [3.0.0+].
397  * @param[out] out Output flag.
398  */
400 
401 /**
402  * @brief EnableUsbFullKeyController
403  * @note Only available on [3.0.0+].
404  * @param[in] flag Flag
405  */
407 
408 /**
409  * @brief IsUsbConnected
410  * @note Only available on [3.0.0+].
411  * @param[in] unique_pad_id \ref HidsysUniquePadId
412  * @param[out] out Output flag.
413  */
414 Result hidsysIsUsbConnected(HidsysUniquePadId unique_pad_id, bool *out);
415 
416 /**
417  * @brief IsFirmwareUpdateNeededForNotification
418  * @note Only available on [9.0.0+].
419  * @param[in] unique_pad_id \ref HidsysUniquePadId
420  * @param[out] out Output flag.
421  */
423 
424 /**
425  * @brief Legacy IsButtonConfigSupported.
426  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysIsButtonConfigSupported instead.
427  * @param[in] unique_pad_id \ref HidsysUniquePadId
428  * @param[out] out Output bool flag.
429  */
431 
432 /**
433  * @brief IsButtonConfigSupported
434  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyIsButtonConfigSupported instead.
435  * @param[in] addr \ref BtdrvAddress
436  * @param[out] out Output bool flag.
437  */
439 
440 /**
441  * @brief IsButtonConfigEmbeddedSupported
442  * @note Only available on [11.0.0+].
443  * @param[out] out Output bool flag.
444  */
446 
447 /**
448  * @brief Legacy DeleteButtonConfig.
449  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysDeleteButtonConfig instead.
450  * @param[in] unique_pad_id \ref HidsysUniquePadId
451  */
453 
454 /**
455  * @brief DeleteButtonConfig
456  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyDeleteButtonConfig instead.
457  * @param[in] addr \ref BtdrvAddress
458  */
460 
461 /**
462  * @brief DeleteButtonConfigEmbedded
463  * @note Only available on [11.0.0+].
464  */
466 
467 /**
468  * @brief Legacy SetButtonConfigEnabled.
469  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigEnabled instead.
470  * @param[in] unique_pad_id \ref HidsysUniquePadId
471  * @param[in] flag Input flag.
472  */
474 
475 /**
476  * @brief SetButtonConfigEnabled
477  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigEnabled instead.
478  * @param[in] addr \ref BtdrvAddress
479  * @param[in] flag Input flag.
480  */
482 
483 /**
484  * @brief SetButtonConfigEmbeddedEnabled
485  * @note Only available on [11.0.0+].
486  * @param[in] flag Input flag.
487  */
489 
490 /**
491  * @brief Legacy IsButtonConfigEnabled.
492  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysIsButtonConfigEnabled instead.
493  * @param[in] unique_pad_id \ref HidsysUniquePadId
494  * @param[out] out Output bool flag.
495  */
497 
498 /**
499  * @brief IsButtonConfigEnabled
500  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyIsButtonConfigEnabled instead.
501  * @param[in] addr \ref BtdrvAddress
502  * @param[in] out Output bool flag.
503  */
505 
506 /**
507  * @brief IsButtonConfigEmbeddedEnabled
508  * @note Only available on [11.0.0+].
509  * @param[out] out Output bool flag.
510  */
512 
513 /**
514  * @brief Legacy SetButtonConfigEmbedded.
515  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigEmbedded instead.
516  * @param[in] unique_pad_id \ref HidsysUniquePadId
517  * @param[in] config \ref HidsysButtonConfigEmbedded
518  */
520 
521 /**
522  * @brief SetButtonConfigEmbedded
523  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigEmbedded instead.
524  * @param[in] config \ref HidsysButtonConfigEmbedded
525  */
527 
528 /**
529  * @brief Legacy SetButtonConfigFull.
530  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigFull instead.
531  * @param[in] unique_pad_id \ref HidsysUniquePadId
532  * @param[in] config \ref HidsysButtonConfigFull
533  */
535 
536 /**
537  * @brief SetButtonConfigFull
538  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigFull instead.
539  * @param[in] addr \ref BtdrvAddress
540  * @param[in] config \ref HidsysButtonConfigFull
541  */
543 
544 /**
545  * @brief Legacy SetButtonConfigLeft.
546  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigLeft instead.
547  * @param[in] unique_pad_id \ref HidsysUniquePadId
548  * @param[in] config \ref HidsysButtonConfigLeft
549  */
551 
552 /**
553  * @brief SetButtonConfigLeft
554  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigLeft instead.
555  * @param[in] addr \ref BtdrvAddress
556  * @param[in] config \ref HidsysButtonConfigLeft
557  */
559 
560 /**
561  * @brief Legacy SetButtonConfigRight.
562  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysSetButtonConfigRight instead.
563  * @param[in] unique_pad_id \ref HidsysUniquePadId
564  * @param[in] config \ref HidsysButtonConfigRight
565  */
567 
568 /**
569  * @brief SetButtonConfigRight
570  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacySetButtonConfigRight instead.
571  * @param[in] addr \ref BtdrvAddress
572  * @param[in] config \ref HidsysButtonConfigRight
573  */
575 
576 /**
577  * @brief Legacy GetButtonConfigEmbedded.
578  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigEmbedded instead.
579  * @param[in] unique_pad_id \ref HidsysUniquePadId
580  * @param[out] config \ref HidsysButtonConfigEmbedded
581  */
583 
584 /**
585  * @brief GetButtonConfigEmbedded
586  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigEmbedded instead.
587  * @param[out] config \ref HidsysButtonConfigEmbedded
588  */
590 
591 /**
592  * @brief Legacy GetButtonConfigFull.
593  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigFull instead.
594  * @param[in] unique_pad_id \ref HidsysUniquePadId
595  * @param[out] config \ref HidsysButtonConfigFull
596  */
598 
599 /**
600  * @brief GetButtonConfigFull
601  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigFull instead.
602  * @param[in] addr \ref BtdrvAddress
603  * @param[out] config \ref HidsysButtonConfigFull
604  */
606 
607 /**
608  * @brief Legacy GetButtonConfigLeft.
609  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigLeft instead.
610  * @param[in] unique_pad_id \ref HidsysUniquePadId
611  * @param[out] config \ref HidsysButtonConfigLeft
612  */
614 
615 /**
616  * @brief GetButtonConfigLeft
617  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigLeft instead.
618  * @param[in] addr \ref BtdrvAddress
619  * @param[out] config \ref HidsysButtonConfigLeft
620  */
622 
623 /**
624  * @brief Legacy GetButtonConfigRight.
625  * @note Only available on [10.0.0-10.2.0]. On [11.0.0+], use \ref hidsysGetButtonConfigRight instead.
626  * @param[in] unique_pad_id \ref HidsysUniquePadId
627  * @param[out] config \ref HidsysButtonConfigRight
628  */
630 
631 /**
632  * @brief GetButtonConfigRight
633  * @note Only available on [11.0.0+]. On [10.0.0-10.2.0], use \ref hidsysLegacyGetButtonConfigRight instead.
634  * @param[in] addr \ref BtdrvAddress
635  * @param[out] config \ref HidsysButtonConfigRight
636  */
638 
639 /**
640  * @brief IsCustomButtonConfigSupported
641  * @note Only available on [10.0.0+].
642  * @param[in] unique_pad_id \ref HidsysUniquePadId
643  * @param[out] out Output bool flag.
644  */
646 
647 /**
648  * @brief IsDefaultButtonConfigEmbedded
649  * @note Only available on [10.0.0+].
650  * @param[in] config \ref HidcfgButtonConfigEmbedded
651  * @param[out] out Output bool flag.
652  */
654 
655 /**
656  * @brief IsDefaultButtonConfigFull
657  * @note Only available on [10.0.0+].
658  * @param[in] config \ref HidcfgButtonConfigFull
659  * @param[out] out Output bool flag.
660  */
662 
663 /**
664  * @brief IsDefaultButtonConfigLeft
665  * @note Only available on [10.0.0+].
666  * @param[in] config \ref HidcfgButtonConfigLeft
667  * @param[out] out Output bool flag.
668  */
670 
671 /**
672  * @brief IsDefaultButtonConfigRight
673  * @note Only available on [10.0.0+].
674  * @param[in] config \ref HidcfgButtonConfigRight
675  * @param[out] out Output bool flag.
676  */
678 
679 /**
680  * @brief IsButtonConfigStorageEmbeddedEmpty
681  * @note Only available on [10.0.0+].
682  * @param[in] index Array index, should be 0-4.
683  * @param[out] out Output bool flag.
684  */
686 
687 /**
688  * @brief IsButtonConfigStorageFullEmpty
689  * @note Only available on [10.0.0+].
690  * @param[in] index Array index, should be 0-4.
691  * @param[out] out Output bool flag.
692  */
694 
695 /**
696  * @brief IsButtonConfigStorageLeftEmpty
697  * @note Only available on [10.0.0+].
698  * @param[in] index Array index, should be 0-4.
699  * @param[out] out Output bool flag.
700  */
702 
703 /**
704  * @brief IsButtonConfigStorageRightEmpty
705  * @note Only available on [10.0.0+].
706  * @param[in] index Array index, should be 0-4.
707  * @param[out] out Output bool flag.
708  */
710 
711 /**
712  * @brief GetButtonConfigStorageEmbeddedDeprecated
713  * @note Only available on [10.0.0-12.1.0].
714  * @param[in] index Array index, should be 0-4.
715  * @param[out] config \ref HidcfgButtonConfigEmbedded
716  */
718 
719 /**
720  * @brief GetButtonConfigStorageFullDeprecated
721  * @note Only available on [10.0.0-12.1.0].
722  * @param[in] index Array index, should be 0-4.
723  * @param[out] config \ref HidcfgButtonConfigFull
724  */
726 
727 /**
728  * @brief GetButtonConfigStorageLeftDeprecated
729  * @note Only available on [10.0.0-12.1.0].
730  * @param[in] index Array index, should be 0-4.
731  * @param[out] config \ref HidcfgButtonConfigLeft
732  */
734 
735 /**
736  * @brief GetButtonConfigStorageRightDeprecated
737  * @note Only available on [10.0.0-12.1.0].
738  * @param[in] index Array index, should be 0-4.
739  * @param[out] config \ref HidcfgButtonConfigRight
740  */
742 
743 /**
744  * @brief SetButtonConfigStorageEmbeddedDeprecated
745  * @note Only available on [10.0.0-12.1.0].
746  * @param[in] index Array index, should be 0-4.
747  * @param[in] config \ref HidcfgButtonConfigEmbedded
748  */
750 
751 /**
752  * @brief SetButtonConfigStorageFullDeprecated
753  * @note Only available on [10.0.0-12.1.0].
754  * @param[in] index Array index, should be 0-4.
755  * @param[in] config \ref HidcfgButtonConfigFull
756  */
758 
759 /**
760  * @brief SetButtonConfigStorageLeftDeprecated
761  * @note Only available on [10.0.0-12.1.0].
762  * @param[in] index Array index, should be 0-4.
763  * @param[in] config \ref HidcfgButtonConfigLeft
764  */
766 
767 /**
768  * @brief SetButtonConfigStorageRightDeprecated
769  * @note Only available on [10.0.0-12.1.0].
770  * @param[in] index Array index, should be 0-4.
771  * @param[in] config \ref HidcfgButtonConfigRight
772  */
774 
775 /**
776  * @brief DeleteButtonConfigStorageEmbedded
777  * @note Only available on [10.0.0+].
778  * @param[in] index Array index, should be 0-4.
779  */
781 
782 /**
783  * @brief DeleteButtonConfigStorageFull
784  * @note Only available on [10.0.0+].
785  * @param[in] index Array index, should be 0-4.
786  */
788 
789 /**
790  * @brief DeleteButtonConfigStorageLeft
791  * @note Only available on [10.0.0+].
792  * @param[in] index Array index, should be 0-4.
793  */
795 
796 /**
797  * @brief DeleteButtonConfigStorageRight
798  * @note Only available on [10.0.0+].
799  * @param[in] index Array index, should be 0-4.
800  */
802 
803 /**
804  * @brief IsUsingCustomButtonConfig
805  * @note Only available on [10.0.0+].
806  * @param[in] unique_pad_id \ref HidsysUniquePadId
807  * @param[out] out Output bool flag.
808  */
810 
811 /**
812  * @brief IsAnyCustomButtonConfigEnabled
813  * @note Only available on [10.0.0+].
814  * @param[out] out Output bool flag.
815  */
817 
818 /**
819  * @brief SetAllCustomButtonConfigEnabled
820  * @note Only available on [10.0.0+].
821  * @param[in] AppletResourceUserId AppletResourceUserId
822  * @param[in] flag Input bool flag.
823  */
824 Result hidsysSetAllCustomButtonConfigEnabled(u64 AppletResourceUserId, bool flag);
825 
826 /**
827  * @brief SetAllDefaultButtonConfig
828  * @note Only available on [10.0.0+].
829  */
831 
832 /**
833  * @brief SetHidButtonConfigEmbedded
834  * @note Only available on [10.0.0+].
835  * @param[in] unique_pad_id \ref HidsysUniquePadId
836  * @param[in] config \ref HidcfgButtonConfigEmbedded
837  */
839 
840 /**
841  * @brief SetHidButtonConfigFull
842  * @note Only available on [10.0.0+].
843  * @param[in] unique_pad_id \ref HidsysUniquePadId
844  * @param[in] config \ref HidcfgButtonConfigFull
845  */
847 
848 /**
849  * @brief SetHidButtonConfigLeft
850  * @note Only available on [10.0.0+].
851  * @param[in] unique_pad_id \ref HidsysUniquePadId
852  * @param[in] config \ref HidcfgButtonConfigLeft
853  */
855 
856 /**
857  * @brief SetHidButtonConfigRight
858  * @note Only available on [10.0.0+].
859  * @param[in] unique_pad_id \ref HidsysUniquePadId
860  * @param[in] config \ref HidcfgButtonConfigRight
861  */
863 
864 /**
865  * @brief GetHidButtonConfigEmbedded
866  * @note Only available on [10.0.0+].
867  * @param[in] unique_pad_id \ref HidsysUniquePadId
868  * @param[out] config \ref HidcfgButtonConfigEmbedded
869  */
871 
872 /**
873  * @brief GetHidButtonConfigFull
874  * @note Only available on [10.0.0+].
875  * @param[in] unique_pad_id \ref HidsysUniquePadId
876  * @param[out] config \ref HidcfgButtonConfigFull
877  */
879 
880 /**
881  * @brief GetHidButtonConfigLeft
882  * @note Only available on [10.0.0+].
883  * @param[in] unique_pad_id \ref HidsysUniquePadId
884  * @param[out] config \ref HidcfgButtonConfigLeft
885  */
887 
888 /**
889  * @brief GetHidButtonConfigRight
890  * @note Only available on [10.0.0+].
891  * @param[in] unique_pad_id \ref HidsysUniquePadId
892  * @param[out] config \ref HidcfgButtonConfigRight
893  */
895 
896 /**
897  * @brief GetButtonConfigStorageEmbedded
898  * @note Only available on [11.0.0+].
899  * @param[in] index Array index, should be 0-4.
900  * @param[out] config \ref HidcfgButtonConfigEmbedded
901  * @param[out] name \ref HidcfgStorageName
902  */
904 
905 /**
906  * @brief GetButtonConfigStorageFull
907  * @note Only available on [11.0.0+].
908  * @param[in] index Array index, should be 0-4.
909  * @param[out] config \ref HidcfgButtonConfigFull
910  * @param[out] name \ref HidcfgStorageName
911  */
913 
914 /**
915  * @brief GetButtonConfigStorageLeft
916  * @note Only available on [11.0.0+].
917  * @param[in] index Array index, should be 0-4.
918  * @param[out] config \ref HidcfgButtonConfigLeft
919  * @param[out] name \ref HidcfgStorageName
920  */
922 
923 /**
924  * @brief GetButtonConfigStorageRight
925  * @note Only available on [11.0.0+].
926  * @param[in] index Array index, should be 0-4.
927  * @param[out] config \ref HidcfgButtonConfigRight
928  * @param[out] name \ref HidcfgStorageName
929  */
931 
932 /**
933  * @brief SetButtonConfigStorageEmbedded
934  * @note Only available on [11.0.0+].
935  * @param[in] index Array index, should be 0-4.
936  * @param[in] config \ref HidcfgButtonConfigEmbedded
937  * @param[in] name \ref HidcfgStorageName
938  */
940 
941 /**
942  * @brief SetButtonConfigStorageFull
943  * @note Only available on [11.0.0+].
944  * @param[in] index Array index, should be 0-4.
945  * @param[in] config \ref HidcfgButtonConfigFull
946  * @param[in] name \ref HidcfgStorageName
947  */
949 
950 /**
951  * @brief SetButtonConfigStorageLeft
952  * @note Only available on [11.0.0+].
953  * @param[in] index Array index, should be 0-4.
954  * @param[in] config \ref HidcfgButtonConfigLeft
955  * @param[in] name \ref HidcfgStorageName
956  */
958 
959 /**
960  * @brief SetButtonConfigStorageRight
961  * @note Only available on [11.0.0+].
962  * @param[in] index Array index, should be 0-4.
963  * @param[in] config \ref HidcfgButtonConfigRight
964  * @param[in] name \ref HidcfgStorageName
965  */
967 
HidcfgDigitalButtonAssignment_ZR
@ HidcfgDigitalButtonAssignment_ZR
ZR.
Definition: hidsys.h:24
HidcfgButtonConfigFull::hardware_button_stick_r
u32 hardware_button_stick_r
HidcfgDigitalButtonAssignment HardwareButtonStickR
Definition: hidsys.h:150
HidcfgStorageName
StorageName.
Definition: hidsys.h:194
HidcfgButtonConfigLeft::hardware_button_up
u32 hardware_button_up
HidcfgDigitalButtonAssignment HardwareButtonUp
Definition: hidsys.h:165
HidcfgAnalogStickAssignment::rotation
u32 rotation
HidcfgAnalogStickRotation
Definition: hidsys.h:111
hidsysLegacyGetButtonConfigFull
Result hidsysLegacyGetButtonConfigFull(HidsysUniquePadId unique_pad_id, HidsysButtonConfigFull *config)
Legacy GetButtonConfigFull.
HidcfgDigitalButtonAssignment_StickL
@ HidcfgDigitalButtonAssignment_StickL
Left Stick Button.
Definition: hidsys.h:19
hidsysGetSupportedNpadStyleSetOfCallerApplet
Result hidsysGetSupportedNpadStyleSetOfCallerApplet(u32 *out)
Gets the SupportedNpadStyleSet for the CallerApplet.
HidcfgDigitalButtonAssignment_RightSL
@ HidcfgDigitalButtonAssignment_RightSL
SL on Right controller.
Definition: hidsys.h:33
hidsysIsButtonConfigEmbeddedEnabled
Result hidsysIsButtonConfigEmbeddedEnabled(bool *out)
IsButtonConfigEmbeddedEnabled.
hidsysSetButtonConfigEmbeddedEnabled
Result hidsysSetButtonConfigEmbeddedEnabled(bool flag)
SetButtonConfigEmbeddedEnabled.
HidcfgButtonConfigRight::hardware_button_x
u32 hardware_button_x
HidcfgDigitalButtonAssignment HardwareButtonX
Definition: hidsys.h:182
HidcfgButtonConfigRight::hardware_button_a
u32 hardware_button_a
HidcfgDigitalButtonAssignment HardwareButtonA
Definition: hidsys.h:180
hidsysLegacySetButtonConfigEmbedded
Result hidsysLegacySetButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, const HidsysButtonConfigEmbedded *config)
Legacy SetButtonConfigEmbedded.
hidsysActivateCaptureButton
Result hidsysActivateCaptureButton(void)
Activates the CaptureButton sharedmem.
hidsysSetButtonConfigStorageLeft
Result hidsysSetButtonConfigStorageLeft(s32 index, const HidcfgButtonConfigLeft *config, const HidcfgStorageName *name)
SetButtonConfigStorageLeft.
HidcfgDigitalButtonAssignment_A
@ HidcfgDigitalButtonAssignment_A
A.
Definition: hidsys.h:15
hidsysIsFirmwareUpdateNeededForNotification
Result hidsysIsFirmwareUpdateNeededForNotification(HidsysUniquePadId unique_pad_id, bool *out)
IsFirmwareUpdateNeededForNotification.
hidsysGetUniquePadsFromNpad
Result hidsysGetUniquePadsFromNpad(HidNpadIdType id, HidsysUniquePadId *unique_pad_ids, s32 count, s32 *total_out)
Gets the UniquePadIds for the specified controller.
hidsysGetButtonConfigStorageRight
Result hidsysGetButtonConfigStorageRight(s32 index, HidcfgButtonConfigRight *config, HidcfgStorageName *name)
GetButtonConfigStorageRight.
HidcfgButtonConfigLeft::hardware_button_stick_l
u32 hardware_button_stick_l
HidcfgDigitalButtonAssignment HardwareButtonStickL
Definition: hidsys.h:168
hidsysIsCustomButtonConfigSupported
Result hidsysIsCustomButtonConfigSupported(HidsysUniquePadId unique_pad_id, bool *out)
IsCustomButtonConfigSupported.
hidsysSetButtonConfigStorageLeftDeprecated
Result hidsysSetButtonConfigStorageLeftDeprecated(s32 index, const HidcfgButtonConfigLeft *config)
SetButtonConfigStorageLeftDeprecated.
hidsysGetButtonConfigStorageLeft
Result hidsysGetButtonConfigStorageLeft(s32 index, HidcfgButtonConfigLeft *config, HidcfgStorageName *name)
GetButtonConfigStorageLeft.
HidcfgButtonConfigFull
ButtonConfigFull.
Definition: hidsys.h:140
hidsysGetButtonConfigStorageFull
Result hidsysGetButtonConfigStorageFull(s32 index, HidcfgButtonConfigFull *config, HidcfgStorageName *name)
GetButtonConfigStorageFull.
hidsysIsUsbConnected
Result hidsysIsUsbConnected(HidsysUniquePadId unique_pad_id, bool *out)
IsUsbConnected.
HidcfgButtonConfigEmbedded::hardware_button_left
u32 hardware_button_left
HidcfgDigitalButtonAssignment HardwareButtonLeft
Definition: hidsys.h:118
HidcfgButtonConfigEmbedded::hardware_button_b
u32 hardware_button_b
HidcfgDigitalButtonAssignment HardwareButtonB
Definition: hidsys.h:123
u8
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
hidsysSetHidButtonConfigFull
Result hidsysSetHidButtonConfigFull(HidsysUniquePadId unique_pad_id, const HidcfgButtonConfigFull *config)
SetHidButtonConfigFull.
hidsysLegacySetButtonConfigFull
Result hidsysLegacySetButtonConfigFull(HidsysUniquePadId unique_pad_id, const HidsysButtonConfigFull *config)
Legacy SetButtonConfigFull.
HidsysUniquePadType_RightController
@ HidsysUniquePadType_RightController
RightController.
Definition: hidsys.h:51
HidcfgAnalogStickRotation_Anticlockwise90
@ HidcfgAnalogStickRotation_Anticlockwise90
Anticlockwise90.
Definition: hidsys.h:44
HidsysNotificationLedPattern::totalMiniCycles
u8 totalMiniCycles
Number of Mini Cycles + 1. Value 0x0-0xF: 1 - 16 mini cycles.
Definition: hidsys.h:79
HidcfgDigitalButtonAssignment_X
@ HidcfgDigitalButtonAssignment_X
X.
Definition: hidsys.h:17
Event
Kernel-mode event structure.
Definition: event.h:13
HidcfgDigitalButtonAssignment_Select
@ HidcfgDigitalButtonAssignment_Select
Select / Minus.
Definition: hidsys.h:25
HidcfgDigitalButtonAssignment_StickR
@ HidcfgDigitalButtonAssignment_StickR
Right Stick Button.
Definition: hidsys.h:20
hidsysSetHidButtonConfigEmbedded
Result hidsysSetHidButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, const HidcfgButtonConfigEmbedded *config)
SetHidButtonConfigEmbedded.
hidsysDeleteButtonConfigStorageEmbedded
Result hidsysDeleteButtonConfigStorageEmbedded(s32 index)
DeleteButtonConfigStorageEmbedded.
hidsysIsUsbFullKeyControllerEnabled
Result hidsysIsUsbFullKeyControllerEnabled(bool *out)
IsUsbFullKeyControllerEnabled.
hidsysLegacySetButtonConfigLeft
Result hidsysLegacySetButtonConfigLeft(HidsysUniquePadId unique_pad_id, const HidsysButtonConfigLeft *config)
Legacy SetButtonConfigLeft.
hidsysIsDefaultButtonConfigLeft
Result hidsysIsDefaultButtonConfigLeft(const HidcfgButtonConfigLeft *config, bool *out)
IsDefaultButtonConfigLeft.
hidsysGetHidButtonConfigFull
Result hidsysGetHidButtonConfigFull(HidsysUniquePadId unique_pad_id, HidcfgButtonConfigFull *config)
GetHidButtonConfigFull.
hidsysAcquireUniquePadConnectionEventHandle
Result hidsysAcquireUniquePadConnectionEventHandle(Event *out_event)
AcquireUniquePadConnectionEventHandle.
hidsysIsAnyCustomButtonConfigEnabled
Result hidsysIsAnyCustomButtonConfigEnabled(bool *out)
IsAnyCustomButtonConfigEnabled.
HidcfgButtonConfigEmbedded::hardware_button_l
u32 hardware_button_l
HidcfgDigitalButtonAssignment HardwareButtonL
Definition: hidsys.h:128
HidcfgDigitalButtonAssignment_LeftSR
@ HidcfgDigitalButtonAssignment_LeftSR
SR on Left controller.
Definition: hidsys.h:32
hidsysSetButtonConfigLeft
Result hidsysSetButtonConfigLeft(BtdrvAddress addr, const HidsysButtonConfigLeft *config)
SetButtonConfigLeft.
HidcfgAnalogStickRotation_None
@ HidcfgAnalogStickRotation_None
None.
Definition: hidsys.h:42
hidsysGetHidButtonConfigLeft
Result hidsysGetHidButtonConfigLeft(HidsysUniquePadId unique_pad_id, HidcfgButtonConfigLeft *config)
GetHidButtonConfigLeft.
hidsysIsButtonConfigStorageRightEmpty
Result hidsysIsButtonConfigStorageRightEmpty(s32 index, bool *out)
IsButtonConfigStorageRightEmpty.
hidsysActivateHomeButton
Result hidsysActivateHomeButton(void)
Activates the HomeButton sharedmem.
hidsysSetHidButtonConfigLeft
Result hidsysSetHidButtonConfigLeft(HidsysUniquePadId unique_pad_id, const HidcfgButtonConfigLeft *config)
SetHidButtonConfigLeft.
hidsysSetButtonConfigEnabled
Result hidsysSetButtonConfigEnabled(BtdrvAddress addr, bool flag)
SetButtonConfigEnabled.
hidsysGetUniquePadInterface
Result hidsysGetUniquePadInterface(HidsysUniquePadId unique_pad_id, HidNpadInterfaceType *interface)
GetUniquePadInterface.
s32
int32_t s32
32-bit signed integer.
Definition: types.h:27
hidsysIsUsingCustomButtonConfig
Result hidsysIsUsingCustomButtonConfig(HidsysUniquePadId unique_pad_id, bool *out)
IsUsingCustomButtonConfig.
hidsysSetButtonConfigRight
Result hidsysSetButtonConfigRight(BtdrvAddress addr, const HidsysButtonConfigRight *config)
SetButtonConfigRight.
HidcfgButtonConfigFull::hardware_button_b
u32 hardware_button_b
HidcfgDigitalButtonAssignment HardwareButtonB
Definition: hidsys.h:146
HidcfgButtonConfigFull::hardware_stick_r
HidcfgAnalogStickAssignment hardware_stick_r
HardwareStickR.
Definition: hidsys.h:159
HidcfgButtonConfigFull::hardware_button_l
u32 hardware_button_l
HidcfgDigitalButtonAssignment HardwareButtonL
Definition: hidsys.h:151
hidsysSetButtonConfigEmbedded
Result hidsysSetButtonConfigEmbedded(const HidsysButtonConfigEmbedded *config)
SetButtonConfigEmbedded.
HidcfgButtonConfigFull::hardware_button_select
u32 hardware_button_select
HidcfgDigitalButtonAssignment HardwareButtonSelect
Definition: hidsys.h:155
HidcfgButtonConfigFull::hardware_button_x
u32 hardware_button_x
HidcfgDigitalButtonAssignment HardwareButtonX
Definition: hidsys.h:147
HidcfgButtonConfigEmbedded::hardware_button_stick_l
u32 hardware_button_stick_l
HidcfgDigitalButtonAssignment HardwareButtonStickL
Definition: hidsys.h:126
HidcfgButtonConfigEmbedded::hardware_button_a
u32 hardware_button_a
HidcfgDigitalButtonAssignment HardwareButtonA
Definition: hidsys.h:122
HidcfgButtonConfigRight::hardware_button_zr
u32 hardware_button_zr
HidcfgDigitalButtonAssignment HardwareButtonZR
Definition: hidsys.h:186
HidcfgButtonConfigLeft::hardware_button_l
u32 hardware_button_l
HidcfgDigitalButtonAssignment HardwareButtonL
Definition: hidsys.h:169
HidcfgButtonConfigEmbedded::hardware_button_right
u32 hardware_button_right
HidcfgDigitalButtonAssignment HardwareButtonRight
Definition: hidsys.h:120
hidsysDisconnectUniquePad
Result hidsysDisconnectUniquePad(HidsysUniquePadId unique_pad_id)
DisconnectUniquePad.
hidsysLegacyGetButtonConfigLeft
Result hidsysLegacyGetButtonConfigLeft(HidsysUniquePadId unique_pad_id, HidsysButtonConfigLeft *config)
Legacy GetButtonConfigLeft.
hidsysIsButtonConfigSupported
Result hidsysIsButtonConfigSupported(BtdrvAddress addr, bool *out)
IsButtonConfigSupported.
HidcfgDigitalButtonAssignment_ZL
@ HidcfgDigitalButtonAssignment_ZL
ZL.
Definition: hidsys.h:23
HidcfgAnalogStickAssignment
AnalogStickAssignment.
Definition: hidsys.h:110
HidcfgButtonConfigEmbedded
ButtonConfigEmbedded.
Definition: hidsys.h:117
HidcfgButtonConfigEmbedded::hardware_button_r
u32 hardware_button_r
HidcfgDigitalButtonAssignment HardwareButtonR
Definition: hidsys.h:129
HidcfgButtonConfigRight::hardware_button_start
u32 hardware_button_start
HidcfgDigitalButtonAssignment HardwareButtonStart
Definition: hidsys.h:187
hidsysEnableUsbFullKeyController
Result hidsysEnableUsbFullKeyController(bool flag)
EnableUsbFullKeyController.
HidNpadIdType
HidNpadIdType
HID controller IDs.
Definition: hid.h:214
HidcfgButtonConfigLeft::hardware_button_left_sl
u32 hardware_button_left_sl
HidcfgDigitalButtonAssignment HardwareButtonLeftSL
Definition: hidsys.h:172
HidcfgButtonConfigEmbedded::hardware_button_x
u32 hardware_button_x
HidcfgDigitalButtonAssignment HardwareButtonX
Definition: hidsys.h:124
hidsysSendKeyboardLockKeyEvent
Result hidsysSendKeyboardLockKeyEvent(u32 events)
SendKeyboardLockKeyEvent.
hidsysLegacyDeleteButtonConfig
Result hidsysLegacyDeleteButtonConfig(HidsysUniquePadId unique_pad_id)
Legacy DeleteButtonConfig.
HidcfgDigitalButtonAssignment_HomeButton
@ HidcfgDigitalButtonAssignment_HomeButton
HomeButton.
Definition: hidsys.h:35
hidsysHasBattery
Result hidsysHasBattery(HidNpadIdType id, bool *out)
HasBattery.
HidcfgDigitalButtonAssignment_Down
@ HidcfgDigitalButtonAssignment_Down
Down.
Definition: hidsys.h:30
HidsysNotificationLedPattern::totalFullCycles
u8 totalFullCycles
Number of Full Cycles. Value 0x1-0xF: 1 - 15 full cycles. Value 0x0 is repeat forever,...
Definition: hidsys.h:80
HidcfgDigitalButtonAssignment_CaptureButton
@ HidcfgDigitalButtonAssignment_CaptureButton
CaptureButton.
Definition: hidsys.h:36
HidsysUniquePadType
HidsysUniquePadType
UniquePadType.
Definition: hidsys.h:48
HidsysNotificationLedPattern::baseMiniCycleDuration
u8 baseMiniCycleDuration
Mini Cycle Base Duration. Value 0x1-0xF: 12.5ms - 187.5ms. Value 0x0 = 0ms/OFF.
Definition: hidsys.h:78
HidsysUniquePadType_Embedded
@ HidsysUniquePadType_Embedded
Embedded.
Definition: hidsys.h:49
hidsysGetServiceSession
Service * hidsysGetServiceSession(void)
Gets the Service object for the actual hidsys service session.
HidcfgButtonConfigRight
ButtonConfigRight.
Definition: hidsys.h:179
HidsysButtonConfigRight
ButtonConfigRight.
Definition: hidsys.h:105
HidcfgDigitalButtonAssignment_B
@ HidcfgDigitalButtonAssignment_B
B.
Definition: hidsys.h:16
HidsysUniquePadType_FullKeyController
@ HidsysUniquePadType_FullKeyController
FullKeyController.
Definition: hidsys.h:50
hidsysIsDefaultButtonConfigFull
Result hidsysIsDefaultButtonConfigFull(const HidcfgButtonConfigFull *config, bool *out)
IsDefaultButtonConfigFull.
hidsysSetNotificationLedPatternWithTimeout
Result hidsysSetNotificationLedPatternWithTimeout(const HidsysNotificationLedPattern *pattern, HidsysUniquePadId unique_pad_id, u64 timeout)
Sets the HOME-button notification LED pattern, for the specified controller.
hidsysSetButtonConfigStorageEmbeddedDeprecated
Result hidsysSetButtonConfigStorageEmbeddedDeprecated(s32 index, const HidcfgButtonConfigEmbedded *config)
SetButtonConfigStorageEmbeddedDeprecated.
HidcfgAnalogStickRotation
HidcfgAnalogStickRotation
AnalogStickRotation.
Definition: hidsys.h:41
HidcfgAnalogStickRotation_Clockwise90
@ HidcfgAnalogStickRotation_Clockwise90
Clockwise90.
Definition: hidsys.h:43
HidsysButtonConfigFull
ButtonConfigFull.
Definition: hidsys.h:95
HidcfgButtonConfigFull::hardware_button_zr
u32 hardware_button_zr
HidcfgDigitalButtonAssignment HardwareButtonZR
Definition: hidsys.h:154
hidsysSetButtonConfigStorageRightDeprecated
Result hidsysSetButtonConfigStorageRightDeprecated(s32 index, const HidcfgButtonConfigRight *config)
SetButtonConfigStorageRightDeprecated.
hidsysGetButtonConfigLeft
Result hidsysGetButtonConfigLeft(BtdrvAddress addr, HidsysButtonConfigLeft *config)
GetButtonConfigLeft.
HidcfgButtonConfigEmbedded::hardware_button_stick_r
u32 hardware_button_stick_r
HidcfgDigitalButtonAssignment HardwareButtonStickR
Definition: hidsys.h:127
u32
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
hidsysSetAllDefaultButtonConfig
Result hidsysSetAllDefaultButtonConfig(void)
SetAllDefaultButtonConfig.
hidsysGetButtonConfigStorageEmbedded
Result hidsysGetButtonConfigStorageEmbedded(s32 index, HidcfgButtonConfigEmbedded *config, HidcfgStorageName *name)
GetButtonConfigStorageEmbedded.
hidsysIsButtonConfigStorageLeftEmpty
Result hidsysIsButtonConfigStorageLeftEmpty(s32 index, bool *out)
IsButtonConfigStorageLeftEmpty.
hidsysHasLeftRightBattery
Result hidsysHasLeftRightBattery(HidNpadIdType id, bool *out0, bool *out1)
HasLeftRightBattery.
HidcfgDigitalButtonAssignment_Y
@ HidcfgDigitalButtonAssignment_Y
Y.
Definition: hidsys.h:18
hidsysDeleteButtonConfig
Result hidsysDeleteButtonConfig(BtdrvAddress addr)
DeleteButtonConfig.
HidsysUniquePadType_DebugPadController
@ HidsysUniquePadType_DebugPadController
DebugPadController.
Definition: hidsys.h:53
HidcfgDigitalButtonAssignment_R
@ HidcfgDigitalButtonAssignment_R
R.
Definition: hidsys.h:22
HidcfgButtonConfigEmbedded::hardware_button_start
u32 hardware_button_start
HidcfgDigitalButtonAssignment HardwareButtonStart
Definition: hidsys.h:133
hidsysLegacyIsButtonConfigSupported
Result hidsysLegacyIsButtonConfigSupported(HidsysUniquePadId unique_pad_id, bool *out)
Legacy IsButtonConfigSupported.
hidsysGetButtonConfigEmbedded
Result hidsysGetButtonConfigEmbedded(HidsysButtonConfigEmbedded *config)
GetButtonConfigEmbedded.
HidcfgDigitalButtonAssignment
HidcfgDigitalButtonAssignment
Selects what button to map to.
Definition: hidsys.h:14
HidcfgDigitalButtonAssignment_L
@ HidcfgDigitalButtonAssignment_L
L.
Definition: hidsys.h:21
HidcfgDigitalButtonAssignment_Right
@ HidcfgDigitalButtonAssignment_Right
Right.
Definition: hidsys.h:29
u64
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
HidcfgButtonConfigFull::hardware_button_stick_l
u32 hardware_button_stick_l
HidcfgDigitalButtonAssignment HardwareButtonStickL
Definition: hidsys.h:149
HidcfgButtonConfigLeft::hardware_button_down
u32 hardware_button_down
HidcfgDigitalButtonAssignment HardwareButtonDown
Definition: hidsys.h:167
HidcfgButtonConfigLeft::hardware_button_left
u32 hardware_button_left
HidcfgDigitalButtonAssignment HardwareButtonLeft
Definition: hidsys.h:164
hidsysGetButtonConfigStorageLeftDeprecated
Result hidsysGetButtonConfigStorageLeftDeprecated(s32 index, HidcfgButtonConfigLeft *config)
GetButtonConfigStorageLeftDeprecated.
HidsysUniquePadSerialNumber
UniquePadSerialNumber.
Definition: hidsys.h:62
hidsysIsButtonConfigEmbeddedSupported
Result hidsysIsButtonConfigEmbeddedSupported(bool *out)
IsButtonConfigEmbeddedSupported.
hidsysIsButtonConfigStorageFullEmpty
Result hidsysIsButtonConfigStorageFullEmpty(s32 index, bool *out)
IsButtonConfigStorageFullEmpty.
HidsysButtonConfigLeft
ButtonConfigLeft.
Definition: hidsys.h:100
HidsysNotificationLedPatternCycle::finalStepDuration
u8 finalStepDuration
Final Step Duration Multiplier of Mini Cycle X. Value 0x0: 12.5ms, 0x1 - xF: 1x - 15x....
Definition: hidsys.h:70
hidsysDeleteButtonConfigStorageFull
Result hidsysDeleteButtonConfigStorageFull(s32 index)
DeleteButtonConfigStorageFull.
hidsysIsDefaultButtonConfigRight
Result hidsysIsDefaultButtonConfigRight(const HidcfgButtonConfigRight *config, bool *out)
IsDefaultButtonConfigRight.
HidcfgButtonConfigFull::hardware_button_down
u32 hardware_button_down
HidcfgDigitalButtonAssignment HardwareButtonDown
Definition: hidsys.h:144
HidcfgDigitalButtonAssignment_Left
@ HidcfgDigitalButtonAssignment_Left
Left.
Definition: hidsys.h:27
HidcfgButtonConfigEmbedded::hardware_stick_l
HidcfgAnalogStickAssignment hardware_stick_l
HardwareStickL.
Definition: hidsys.h:135
Result
u32 Result
Function error code result type.
Definition: types.h:44
hidsysInitialize
Result hidsysInitialize(void)
Initialize hidsys.
HidcfgButtonConfigFull::hardware_button_start
u32 hardware_button_start
HidcfgDigitalButtonAssignment HardwareButtonStart
Definition: hidsys.h:156
hidsysGetButtonConfigRight
Result hidsysGetButtonConfigRight(BtdrvAddress addr, HidsysButtonConfigRight *config)
GetButtonConfigRight.
hidsysActivateSleepButton
Result hidsysActivateSleepButton(void)
Activates the SleepButton sharedmem.
HidcfgButtonConfigLeft
ButtonConfigLeft.
Definition: hidsys.h:163
hidsysGetButtonConfigStorageRightDeprecated
Result hidsysGetButtonConfigStorageRightDeprecated(s32 index, HidcfgButtonConfigRight *config)
GetButtonConfigStorageRightDeprecated.
HidcfgButtonConfigEmbedded::hardware_button_y
u32 hardware_button_y
HidcfgDigitalButtonAssignment HardwareButtonY
Definition: hidsys.h:125
HidcfgButtonConfigFull::hardware_button_left
u32 hardware_button_left
HidcfgDigitalButtonAssignment HardwareButtonLeft
Definition: hidsys.h:141
hidsysGetUniquePadType
Result hidsysGetUniquePadType(HidsysUniquePadId unique_pad_id, HidsysUniquePadType *pad_type)
GetUniquePadType.
HidsysNotificationLedPattern::startIntensity
u8 startIntensity
LED Start Intensity. Value 0x0=0% - 0xF=100%.
Definition: hidsys.h:81
HidcfgButtonConfigFull::hardware_button_a
u32 hardware_button_a
HidcfgDigitalButtonAssignment HardwareButtonA
Definition: hidsys.h:145
HidcfgDigitalButtonAssignment_Start
@ HidcfgDigitalButtonAssignment_Start
Start / Plus.
Definition: hidsys.h:26
hidsysGetButtonConfigFull
Result hidsysGetButtonConfigFull(BtdrvAddress addr, HidsysButtonConfigFull *config)
GetButtonConfigFull.
hidsysGetButtonConfigStorageEmbeddedDeprecated
Result hidsysGetButtonConfigStorageEmbeddedDeprecated(s32 index, HidcfgButtonConfigEmbedded *config)
GetButtonConfigStorageEmbeddedDeprecated.
HidcfgButtonConfigLeft::hardware_button_select
u32 hardware_button_select
HidcfgDigitalButtonAssignment HardwareButtonSelect
Definition: hidsys.h:171
HidcfgButtonConfigLeft::hardware_button_right
u32 hardware_button_right
HidcfgDigitalButtonAssignment HardwareButtonRight
Definition: hidsys.h:166
hidsysGetUniquePadIds
Result hidsysGetUniquePadIds(HidsysUniquePadId *unique_pad_ids, s32 count, s32 *total_out)
Gets a list of all UniquePadIds.
HidcfgButtonConfigFull::hardware_button_capture
u32 hardware_button_capture
HidcfgDigitalButtonAssignment HardwareButtonCapture
Definition: hidsys.h:157
hidsysSetButtonConfigFull
Result hidsysSetButtonConfigFull(BtdrvAddress addr, const HidsysButtonConfigFull *config)
SetButtonConfigFull.
HidcfgDigitalButtonAssignment_LeftSL
@ HidcfgDigitalButtonAssignment_LeftSL
SL on Left controller.
Definition: hidsys.h:31
HidcfgButtonConfigRight::hardware_stick_r
HidcfgAnalogStickAssignment hardware_stick_r
HardwareStickR.
Definition: hidsys.h:190
HidcfgButtonConfigEmbedded::hardware_button_capture
u32 hardware_button_capture
HidcfgDigitalButtonAssignment HardwareButtonCapture
Definition: hidsys.h:134
HidsysButtonConfigEmbedded
ButtonConfigEmbedded.
Definition: hidsys.h:90
HidcfgButtonConfigFull::hardware_button_y
u32 hardware_button_y
HidcfgDigitalButtonAssignment HardwareButtonY
Definition: hidsys.h:148
hidsysSetButtonConfigStorageFull
Result hidsysSetButtonConfigStorageFull(s32 index, const HidcfgButtonConfigFull *config, const HidcfgStorageName *name)
SetButtonConfigStorageFull.
hidsysGetHidButtonConfigRight
Result hidsysGetHidButtonConfigRight(HidsysUniquePadId unique_pad_id, HidcfgButtonConfigRight *config)
GetHidButtonConfigRight.
HidNpadInterfaceType
HidNpadInterfaceType
NpadInterfaceType (system)
Definition: hid.h:477
hidsysAcquireHomeButtonEventHandle
Result hidsysAcquireHomeButtonEventHandle(Event *out_event, bool autoclear)
Gets an Event which is signaled when HidHomeButtonState is updated.
hidsysGetUniquePadControllerNumber
Result hidsysGetUniquePadControllerNumber(HidsysUniquePadId unique_pad_id, u64 *number)
GetUniquePadControllerNumber.
hidsysSetButtonConfigStorageFullDeprecated
Result hidsysSetButtonConfigStorageFullDeprecated(s32 index, const HidcfgButtonConfigFull *config)
SetButtonConfigStorageFullDeprecated.
hidsysLegacyIsButtonConfigEnabled
Result hidsysLegacyIsButtonConfigEnabled(HidsysUniquePadId unique_pad_id, bool *out)
Legacy IsButtonConfigEnabled.
hidsysSetNotificationLedPattern
Result hidsysSetNotificationLedPattern(const HidsysNotificationLedPattern *pattern, HidsysUniquePadId unique_pad_id)
Sets the HOME-button notification LED pattern, for the specified controller.
HidsysUniquePadId::id
u64 id
UniquePadId.
Definition: hidsys.h:58
hidsysAcquireSleepButtonEventHandle
Result hidsysAcquireSleepButtonEventHandle(Event *out_event, bool autoclear)
Gets an Event which is signaled when HidSleepButtonState is updated.
HidcfgButtonConfigEmbedded::hardware_button_select
u32 hardware_button_select
HidcfgDigitalButtonAssignment HardwareButtonSelect
Definition: hidsys.h:132
hidsysLegacyGetButtonConfigRight
Result hidsysLegacyGetButtonConfigRight(HidsysUniquePadId unique_pad_id, HidsysButtonConfigRight *config)
Legacy GetButtonConfigRight.
HidsysNotificationLedPatternCycle::ledIntensity
u8 ledIntensity
Mini Cycle X LED Intensity.
Definition: hidsys.h:68
HidcfgDigitalButtonAssignment_Up
@ HidcfgDigitalButtonAssignment_Up
Up.
Definition: hidsys.h:28
hidsysIsDefaultButtonConfigEmbedded
Result hidsysIsDefaultButtonConfigEmbedded(const HidcfgButtonConfigEmbedded *config, bool *out)
IsDefaultButtonConfigEmbedded.
HidcfgButtonConfigLeft::hardware_button_capture
u32 hardware_button_capture
HidcfgDigitalButtonAssignment HardwareButtonCapture
Definition: hidsys.h:174
HidcfgButtonConfigFull::hardware_stick_l
HidcfgAnalogStickAssignment hardware_stick_l
HardwareStickL.
Definition: hidsys.h:158
HidcfgButtonConfigFull::hardware_button_right
u32 hardware_button_right
HidcfgDigitalButtonAssignment HardwareButtonRight
Definition: hidsys.h:143
HidcfgButtonConfigEmbedded::hardware_stick_r
HidcfgAnalogStickAssignment hardware_stick_r
HardwareStickR.
Definition: hidsys.h:136
hidsysGetButtonConfigStorageFullDeprecated
Result hidsysGetButtonConfigStorageFullDeprecated(s32 index, HidcfgButtonConfigFull *config)
GetButtonConfigStorageFullDeprecated.
hidsysIsButtonConfigStorageEmbeddedEmpty
Result hidsysIsButtonConfigStorageEmbeddedEmpty(s32 index, bool *out)
IsButtonConfigStorageEmbeddedEmpty.
hidsysDeleteButtonConfigStorageLeft
Result hidsysDeleteButtonConfigStorageLeft(s32 index)
DeleteButtonConfigStorageLeft.
BtdrvAddress
Address.
Definition: btdrv_types.h:161
hidsysAcquireCaptureButtonEventHandle
Result hidsysAcquireCaptureButtonEventHandle(Event *out_event, bool autoclear)
Gets an Event which is signaled when HidCaptureButtonState is updated.
hidsysSetHidButtonConfigRight
Result hidsysSetHidButtonConfigRight(HidsysUniquePadId unique_pad_id, const HidcfgButtonConfigRight *config)
SetHidButtonConfigRight.
hidsysGetHidButtonConfigEmbedded
Result hidsysGetHidButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, HidcfgButtonConfigEmbedded *config)
GetHidButtonConfigEmbedded.
hidsysGetUniquePadSerialNumber
Result hidsysGetUniquePadSerialNumber(HidsysUniquePadId unique_pad_id, HidsysUniquePadSerialNumber *serial)
Gets the HidsysUniquePadSerialNumber.
Service
Service object structure.
Definition: service.h:13
HidsysUniquePadId
UniquePadId for a controller.
Definition: hidsys.h:57
HidsysNotificationLedPatternCycle
Mini Cycle struct for HidsysNotificationLedPattern.
Definition: hidsys.h:67
hidsysLegacyGetButtonConfigEmbedded
Result hidsysLegacyGetButtonConfigEmbedded(HidsysUniquePadId unique_pad_id, HidsysButtonConfigEmbedded *config)
Legacy GetButtonConfigEmbedded.
HidcfgButtonConfigRight::hardware_button_r
u32 hardware_button_r
HidcfgDigitalButtonAssignment HardwareButtonR
Definition: hidsys.h:185
HidcfgButtonConfigEmbedded::hardware_button_zr
u32 hardware_button_zr
HidcfgDigitalButtonAssignment HardwareButtonZR
Definition: hidsys.h:131
HidcfgButtonConfigRight::hardware_button_y
u32 hardware_button_y
HidcfgDigitalButtonAssignment HardwareButtonY
Definition: hidsys.h:183
HidcfgButtonConfigFull::hardware_button_zl
u32 hardware_button_zl
HidcfgDigitalButtonAssignment HardwareButtonZL
Definition: hidsys.h:153
HidsysNotificationLedPattern
Structure for hidsysSetNotificationLedPattern.
Definition: hidsys.h:77
hidsysLegacySetButtonConfigRight
Result hidsysLegacySetButtonConfigRight(HidsysUniquePadId unique_pad_id, const HidsysButtonConfigRight *config)
Legacy SetButtonConfigRight.
HidcfgButtonConfigEmbedded::hardware_button_down
u32 hardware_button_down
HidcfgDigitalButtonAssignment HardwareButtonDown
Definition: hidsys.h:121
HidcfgButtonConfigRight::hardware_button_b
u32 hardware_button_b
HidcfgDigitalButtonAssignment HardwareButtonB
Definition: hidsys.h:181
HidcfgButtonConfigFull::hardware_button_up
u32 hardware_button_up
HidcfgDigitalButtonAssignment HardwareButtonUp
Definition: hidsys.h:142
HidcfgButtonConfigRight::hardware_button_stick_r
u32 hardware_button_stick_r
HidcfgDigitalButtonAssignment HardwareButtonStickR
Definition: hidsys.h:184
HidcfgDigitalButtonAssignment_RightSR
@ HidcfgDigitalButtonAssignment_RightSR
SR on Right controller.
Definition: hidsys.h:34
hidsysLegacySetButtonConfigEnabled
Result hidsysLegacySetButtonConfigEnabled(HidsysUniquePadId unique_pad_id, bool flag)
Legacy SetButtonConfigEnabled.
hidsysGetNpadLeftRightInterfaceType
Result hidsysGetNpadLeftRightInterfaceType(HidNpadIdType id, u8 *out0, u8 *out1)
GetNpadLeftRightInterfaceType.
hidsysGetUniquePadBluetoothAddress
Result hidsysGetUniquePadBluetoothAddress(HidsysUniquePadId unique_pad_id, BtdrvAddress *address)
GetUniquePadBluetoothAddress.
HidsysNotificationLedPatternCycle::transitionSteps
u8 transitionSteps
Fading Transition Steps to Mini Cycle X (Uses PWM). Value 0x0: Instant. Each step duration is based o...
Definition: hidsys.h:69
hidsysExit
void hidsysExit(void)
Exit hidsys.
HidcfgDigitalButtonAssignment_Invalid
@ HidcfgDigitalButtonAssignment_Invalid
Invalid / Disabled.
Definition: hidsys.h:37
hidsysEnableAppletToGetInput
Result hidsysEnableAppletToGetInput(bool enable)
EnableAppletToGetInput.
HidcfgButtonConfigRight::hardware_button_right_sr
u32 hardware_button_right_sr
HidcfgDigitalButtonAssignment HardwareButtonRightSR
Definition: hidsys.h:189
HidcfgAnalogStickAssignment::is_paired_stick_assigned
u8 is_paired_stick_assigned
IsPairedStickAssigned.
Definition: hidsys.h:112
HidcfgButtonConfigEmbedded::hardware_button_up
u32 hardware_button_up
HidcfgDigitalButtonAssignment HardwareButtonUp
Definition: hidsys.h:119
hidsysSetButtonConfigStorageRight
Result hidsysSetButtonConfigStorageRight(s32 index, const HidcfgButtonConfigRight *config, const HidcfgStorageName *name)
SetButtonConfigStorageRight.
HidcfgButtonConfigLeft::hardware_button_zl
u32 hardware_button_zl
HidcfgDigitalButtonAssignment HardwareButtonZL
Definition: hidsys.h:170
hidsysGetNpadInterfaceType
Result hidsysGetNpadInterfaceType(HidNpadIdType id, u8 *out)
Gets the HidNpadInterfaceType for the specified controller.
hidsysSetButtonConfigStorageEmbedded
Result hidsysSetButtonConfigStorageEmbedded(s32 index, const HidcfgButtonConfigEmbedded *config, const HidcfgStorageName *name)
SetButtonConfigStorageEmbedded.
HidcfgButtonConfigRight::hardware_button_right_sl
u32 hardware_button_right_sl
HidcfgDigitalButtonAssignment HardwareButtonRightSL
Definition: hidsys.h:188
hidsysSetAllCustomButtonConfigEnabled
Result hidsysSetAllCustomButtonConfigEnabled(u64 AppletResourceUserId, bool flag)
SetAllCustomButtonConfigEnabled.
HidcfgButtonConfigEmbedded::hardware_button_zl
u32 hardware_button_zl
HidcfgDigitalButtonAssignment HardwareButtonZL
Definition: hidsys.h:130
HidcfgButtonConfigFull::hardware_button_r
u32 hardware_button_r
HidcfgDigitalButtonAssignment HardwareButtonR
Definition: hidsys.h:152
HidcfgButtonConfigLeft::hardware_stick_l
HidcfgAnalogStickAssignment hardware_stick_l
HardwareStickL.
Definition: hidsys.h:175
hidsysDeleteButtonConfigEmbedded
Result hidsysDeleteButtonConfigEmbedded(void)
DeleteButtonConfigEmbedded.
HidsysUniquePadType_LeftController
@ HidsysUniquePadType_LeftController
LeftController.
Definition: hidsys.h:52
hidsysDeleteButtonConfigStorageRight
Result hidsysDeleteButtonConfigStorageRight(s32 index)
DeleteButtonConfigStorageRight.
HidcfgButtonConfigLeft::hardware_button_left_sr
u32 hardware_button_left_sr
HidcfgDigitalButtonAssignment HardwareButtonLeftSR
Definition: hidsys.h:173
hidsysIsButtonConfigEnabled
Result hidsysIsButtonConfigEnabled(BtdrvAddress addr, bool *out)
IsButtonConfigEnabled.