9 #include "../kernel/event.h"
10 #include "../services/hid.h"
11 #include "../sf/service.h"
HidNpadIdType
HID controller IDs.
Definition: hid.h:214
HidbusJoyPollingMode
JoyPollingMode.
Definition: hidbus.h:21
@ HidbusJoyPollingMode_SixAxisSensorEnable
JoyEnableSixAxisPollingData.
Definition: hidbus.h:23
@ HidbusJoyPollingMode_ButtonOnly
[6.0.0+] ButtonOnly
Definition: hidbus.h:24
@ HidbusJoyPollingMode_SixAxisSensorDisable
SixAxisSensorDisable.
Definition: hidbus.h:22
HidbusBusType
BusType.
Definition: hidbus.h:14
@ HidbusBusType_RightLarkRail
[6.0.0+] RightLarkRail (for microphone).
Definition: hidbus.h:17
@ HidbusBusType_LeftJoyRail
LeftJoyRail.
Definition: hidbus.h:15
@ HidbusBusType_RightJoyRail
RightJoyRail.
Definition: hidbus.h:16
Result hidbusFinalize(HidbusBusHandle handle)
Finalize.
Result hidbusGetServiceSession(Service *srv_out)
Gets the Service object for the actual hidbus service session. This object must be closed by the user...
Result hidbusGetJoyPollingReceivedData(HidbusBusHandle handle, HidbusJoyPollingReceivedData *recv_data, s32 count)
GetJoyPollingReceivedData.
Result hidbusSendAndReceive(HidbusBusHandle handle, const void *inbuf, size_t inbuf_size, void *outbuf, size_t outbuf_size, u64 *out_size)
SendAndReceive.
Result hidbusEnableJoyPollingReceiveMode(HidbusBusHandle handle, const void *inbuf, size_t inbuf_size, void *workbuf, size_t workbuf_size, HidbusJoyPollingMode polling_mode)
EnableJoyPollingReceiveMode.
Result hidbusGetBusHandle(HidbusBusHandle *handle, bool *flag, HidNpadIdType id, HidbusBusType bus_type)
GetBusHandle.
Result hidbusDisableJoyPollingReceiveMode(HidbusBusHandle handle)
DisableJoyPollingReceiveMode.
Result hidbusEnableExternalDevice(HidbusBusHandle handle, bool flag, u32 device_id)
EnableExternalDevice.
void * hidbusGetSharedmemAddr(void)
Gets the SharedMemory addr (HidbusStatusManagerV5 on 5.x, otherwise HidbusStatusManager)....
Result hidbusInitialize(HidbusBusHandle handle)
Initialize.
BusHandle.
Definition: hidbus.h:28
u8 player_number
PlayerNumber.
Definition: hidbus.h:31
u8 bus_type_id
BusTypeId.
Definition: hidbus.h:32
u8 is_valid
IsValid.
Definition: hidbus.h:33
u8 internal_index
InternalIndex.
Definition: hidbus.h:30
u32 abstracted_pad_id
AbstractedPadId.
Definition: hidbus.h:29
HidbusJoyButtonOnlyPollingDataAccessorEntryData.
Definition: hidbus.h:81
u8 out_size
Size of data.
Definition: hidbus.h:83
u64 sampling_number
SamplingNumber.
Definition: hidbus.h:85
HidbusJoyButtonOnlyPollingDataAccessorEntry.
Definition: hidbus.h:89
HidbusJoyButtonOnlyPollingDataAccessorEntryData data
HidbusJoyEnableSixAxisPollingDataAccessorEntryData
Definition: hidbus.h:91
u64 sampling_number
SamplingNumber.
Definition: hidbus.h:90
HidbusJoyDisableSixAxisPollingDataAccessorEntryData.
Definition: hidbus.h:53
u8 out_size
Size of data.
Definition: hidbus.h:55
u64 sampling_number
SamplingNumber.
Definition: hidbus.h:57
u8 pad
Padding.
Definition: hidbus.h:56
HidbusJoyDisableSixAxisPollingDataAccessorEntry.
Definition: hidbus.h:61
u64 sampling_number
SamplingNumber.
Definition: hidbus.h:62
HidbusJoyDisableSixAxisPollingDataAccessorEntryData data
HidbusJoyDisableSixAxisPollingDataAccessorEntryData
Definition: hidbus.h:63
HidbusJoyDisableSixAxisPollingDataAccessor.
Definition: hidbus.h:95
HidbusDataAccessorHeader hdr
HidbusDataAccessorHeader
Definition: hidbus.h:96
HidbusJoyEnableSixAxisPollingDataAccessorEntryData.
Definition: hidbus.h:67
u64 sampling_number
SamplingNumber.
Definition: hidbus.h:71
u8 out_size
Size of data.
Definition: hidbus.h:69
HidbusJoyEnableSixAxisPollingDataAccessorEntry.
Definition: hidbus.h:75
HidbusJoyEnableSixAxisPollingDataAccessorEntryData data
HidbusJoyEnableSixAxisPollingDataAccessorEntryData
Definition: hidbus.h:77
u64 sampling_number
SamplingNumber.
Definition: hidbus.h:76
HidbusJoyEnableSixAxisPollingDataAccessor.
Definition: hidbus.h:101
HidbusDataAccessorHeader hdr
HidbusDataAccessorHeader
Definition: hidbus.h:102
JoyPollingReceivedData.
Definition: hidbus.h:37
u64 sampling_number
SamplingNumber.
Definition: hidbus.h:40
u64 out_size
Size of data.
Definition: hidbus.h:39
Common data for HidbusStatusManagerEntry*.
Definition: hidbus.h:113
u8 is_enabled
Flag indicating whether a device is enabled (hidbusEnableExternalDevice).
Definition: hidbus.h:117
u32 polling_mode
HidbusJoyPollingMode
Definition: hidbus.h:121
u8 is_polling_mode
Flag indicating whether polling is enabled (hidbusEnableJoyPollingReceiveMode).
Definition: hidbus.h:119
u8 reserved
Reserved.
Definition: hidbus.h:120
u8 is_in_focus
Flag indicating whether this entry is valid.
Definition: hidbus.h:118
Result is_connected_result
IsConnectedResult.
Definition: hidbus.h:116
u8 is_connected
IsConnected.
Definition: hidbus.h:114
HidbusStatusManagerEntry on 5.x.
Definition: hidbus.h:125
HidbusStatusManagerEntryCommon common
HidbusStatusManagerEntryCommon
Definition: hidbus.h:126
HidbusStatusManagerEntry.
Definition: hidbus.h:131
HidbusStatusManagerEntryCommon common
HidbusStatusManagerEntryCommon
Definition: hidbus.h:132
StatusManager on 5.x.
Definition: hidbus.h:137
StatusManager.
Definition: hidbus.h:142
Service object structure.
Definition: service.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21