wut  v1.5.0
Wii U Toolchain
base.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
15 typedef enum VPADChan
16 {
22 
23 typedef enum
24 {
30 
40 void
42 
52 void
54 
61 BOOL
63 
75 int32_t
77 
94 int32_t
96  int32_t counter);
97 
98 void
100  int8_t setting);
101 
102 void
104  int8_t *outSetting);
105 
119 int32_t
121 
135 void
137  int32_t *mode);
138 
153 void
155  int32_t mode);
156 
173 void
175  uint32_t *tick,
176  uint32_t *status);
177 
190 void
192  uint32_t tick,
193  uint32_t status);
194 
208 void
210  uint32_t mode);
211 
218 void
220 
232 
233 #ifdef __cplusplus
234 }
235 #endif
236 
int32_t VPADBASESetMotorOnRemainingCount(VPADChan chan, int32_t counter)
Set a count representing the amount of time left for the given Gamepad's rumble pattern.
VPADChan
Wii U GamePad channel.
Definition: base.h:16
BOOL VPADBASEIsInit()
Checks if VPADBASE is initialized.
void VPADBASEGetGameControllerMode(VPADChan chan, int32_t *mode)
Get the controller mode.
int32_t VPADBASEGetMotorOnRemainingCount(VPADChan chan)
Return a count representing the amount of time left for the given Gamepad's rumble pattern.
void VPADBASEShutdown()
Deinitializes the VPADBASE library.
void VPADBASESetGameControllerMode(VPADChan chan, int32_t mode)
Set the controller mode.
VPADIRCStatusFlags
Definition: base.h:24
void VPADBASEGetPowerButtonPressStatus(VPADChan chan, uint32_t *tick, uint32_t *status)
Get the POWER button press status.
void VPADBASESetSensorBarSetting(VPADChan chan, int8_t setting)
int32_t VPADBASEGetHeadphoneStatus(VPADChan chan)
Get the headphone status.
void VPADBASEClearIRCEvent(VPADChan chan)
Clear pending IRC events.
void VPADBASESetPowerButtonPressStatus(VPADChan chan, uint32_t tick, uint32_t status)
Set the POWER button press status.
void VPADBASESetPowerButtonDisableMode(VPADChan chan, uint32_t mode)
Set the POWER button mode.
void VPADBASEInit()
Initializes the VPADBASE library for use.
void VPADBASEGetSensorBarSetting(VPADChan chan, int8_t *outSetting)
VPADIRCStatusFlags VPADBASEGetIRCStatus(VPADChan chan)
Get the current IRC status.
@ VPAD_CHAN_0
Channel 0.
Definition: base.h:18
@ VPAD_CHAN_1
Channel 1.
Definition: base.h:20
@ VPAD_IRC_STATUS_FLAG_HAS_DATA
Indicates that there is pending data which can be received.
Definition: base.h:26
@ VPAD_IRC_STATUS_FLAG_CONNECTED
Indicates that another device is connected.
Definition: base.h:28
int32_t BOOL
Definition: wut_types.h:7