wut  v1.7.0
Wii U Toolchain
wpad.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <coreinit/time.h>
4 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
18 typedef struct WPADVec2D WPADVec2D;
19 typedef struct WPADInfo WPADInfo;
20 typedef struct WPADAddress WPADAddress;
22 typedef struct WPADiQueue WPADiQueue;
23 
25 typedef enum WPADChan
26 {
42 
44 typedef enum WPADDataFormat
45 {
81 
83 typedef enum WPADExtensionType
84 {
102  WPAD_EXT_UNKNOWN = 255
104 
106 typedef enum WPADButton
107 {
115  WPAD_BUTTON_UP = 0x0008,
119  WPAD_BUTTON_2 = 0x0100,
121  WPAD_BUTTON_1 = 0x0200,
123  WPAD_BUTTON_B = 0x0400,
125  WPAD_BUTTON_A = 0x0800,
129  WPAD_BUTTON_Z = 0x2000,
131  WPAD_BUTTON_C = 0x4000,
135 
137 typedef enum WPADNunchukButton
138 {
152 
154 typedef enum WPADClassicButton
155 {
163  WPAD_CLASSIC_BUTTON_X = 0x00000008,
165  WPAD_CLASSIC_BUTTON_A = 0x00000010,
167  WPAD_CLASSIC_BUTTON_Y = 0x00000020,
169  WPAD_CLASSIC_BUTTON_B = 0x00000040,
173  WPAD_CLASSIC_BUTTON_R = 0x00000200,
181  WPAD_CLASSIC_BUTTON_L = 0x00002000,
203 
205 typedef enum WPADProButton
206 {
208  WPAD_PRO_BUTTON_UP = 0x00000001,
210  WPAD_PRO_BUTTON_LEFT = 0x00000002,
212  WPAD_PRO_TRIGGER_ZR = 0x00000004,
214  WPAD_PRO_BUTTON_X = 0x00000008,
216  WPAD_PRO_BUTTON_A = 0x00000010,
218  WPAD_PRO_BUTTON_Y = 0x00000020,
220  WPAD_PRO_BUTTON_B = 0x00000040,
222  WPAD_PRO_TRIGGER_ZL = 0x00000080,
224  WPAD_PRO_RESERVED = 0x00000100,
226  WPAD_PRO_TRIGGER_R = 0x00000200,
228  WPAD_PRO_BUTTON_PLUS = 0x00000400,
230  WPAD_PRO_BUTTON_HOME = 0x00000800,
232  WPAD_PRO_BUTTON_MINUS = 0x00001000,
234  WPAD_PRO_TRIGGER_L = 0x00002000,
236  WPAD_PRO_BUTTON_DOWN = 0x00004000,
238  WPAD_PRO_BUTTON_RIGHT = 0x00008000,
260 
262 typedef enum WPADLed
263 {
264  WPAD_LED_ONE = 0x01,
265  WPAD_LED_TWO = 0x02,
267  WPAD_LED_FOUR = 0x08
270 
272 typedef enum WPADDpdFormat
273 {
280 
282 typedef enum WPADSpeakerCmd
283 {
297 
299 typedef enum WPADMplsMode
300 {
309 
310 
313 {
321 
323 struct WPADVec2D
324 {
326  int16_t x;
328  int16_t y;
329 };
330 WUT_CHECK_OFFSET(WPADVec2D, 0x00, x);
331 WUT_CHECK_OFFSET(WPADVec2D, 0x02, y);
332 WUT_CHECK_SIZE(WPADVec2D, 0x04);
333 
335 {
336  WUT_UNKNOWN_BYTES(0x28);
337 
339  uint8_t extensionType;
340 
341  uint8_t err;
342  WUT_PADDING_BYTES(2);
343  uint32_t buttons;
346  WUT_UNKNOWN_BYTES(8);
348 };
349 WUT_CHECK_OFFSET(WPADStatusProController, 0x28, extensionType);
350 WUT_CHECK_OFFSET(WPADStatusProController, 0x29, err);
351 WUT_CHECK_OFFSET(WPADStatusProController, 0x2C, buttons);
352 WUT_CHECK_OFFSET(WPADStatusProController, 0x30, leftStick);
353 WUT_CHECK_OFFSET(WPADStatusProController, 0x34, rightStick);
354 WUT_CHECK_OFFSET(WPADStatusProController, 0x40, dataFormat);
355 WUT_CHECK_SIZE(WPADStatusProController, 0x44);
356 
358 struct WPADInfo
359 {
360  uint32_t irEnabled;
361  uint32_t speakerEnabled;
363  uint32_t batteryLow;
365  uint8_t batteryLevel;
366  uint8_t led;
367  uint8_t protocol;
368  uint8_t firmware;
369 };
370 WUT_CHECK_OFFSET(WPADInfo, 0x00, irEnabled);
371 WUT_CHECK_OFFSET(WPADInfo, 0x04, speakerEnabled);
372 WUT_CHECK_OFFSET(WPADInfo, 0x08, extensionAttached);
373 WUT_CHECK_OFFSET(WPADInfo, 0x0c, batteryLow);
374 WUT_CHECK_OFFSET(WPADInfo, 0x10, batteryNearEmpty);
375 WUT_CHECK_OFFSET(WPADInfo, 0x14, batteryLevel);
376 WUT_CHECK_OFFSET(WPADInfo, 0x15, led);
377 WUT_CHECK_OFFSET(WPADInfo, 0x16, protocol);
378 WUT_CHECK_OFFSET(WPADInfo, 0x17, firmware);
379 WUT_CHECK_SIZE(WPADInfo, 0x18);
380 
381 
383 {
384  uint8_t data[0x30];
385 };
386 WUT_CHECK_OFFSET(WPADiQueueElement, 0x00, data);
387 WUT_CHECK_SIZE(WPADiQueueElement, 0x30);
388 
390 {
391  uint8_t frontIndex;
392  uint8_t backIndex;
393  WUT_PADDING_BYTES(2);
395  uint32_t capacity;
396 };
397 WUT_CHECK_OFFSET(WPADiQueue, 0x00, frontIndex);
398 WUT_CHECK_OFFSET(WPADiQueue, 0x01, backIndex);
399 WUT_CHECK_OFFSET(WPADiQueue, 0x04, elements);
400 WUT_CHECK_OFFSET(WPADiQueue, 0x08, capacity);
401 WUT_CHECK_SIZE(WPADiQueue, 0xc);
402 
405 {
406  uint8_t btDeviceAddress[6];
407 };
408 WUT_CHECK_OFFSET(WPADAddress, 0x00, btDeviceAddress);
409 WUT_CHECK_SIZE(WPADAddress, 0x6);
410 
411 typedef void (*WPADIsMplsAttachedCallback)(WPADChan chan, int32_t status);
412 typedef void (*WPADControlLedCallback)(WPADChan chan, int32_t status);
413 typedef void (*WPADControlDpdCallback)(WPADChan chan, int32_t status);
414 typedef void (*WPADControlSpeakerCallback)(WPADChan chan, int32_t status);
415 
416 typedef void (*WPADGetInfoCallback)(WPADChan chan, int32_t status);
417 
421 typedef void (*WPADReadMemoryCallback)(WPADChan chan, int32_t status);
422 
426 typedef void (*WPADWriteMemoryCallback)(WPADChan chan, int32_t status);
427 
428 typedef void (*WPADSamplingCallback)(WPADChan chan);
429 
434 
439 typedef void (*WPADConnectCallback)(WPADChan chan, int32_t status);
440 
441 typedef void (*WPADiSendCallback)(WPADChan chan, int32_t status);
442 
447 typedef void (*WPADiWriteGameDataCallback)(WPADChan chan, int32_t status);
448 
452 void
454 
458 void
460 
464 void
466 
472 int32_t
474  WPADExtensionType *outExtensionType);
475 
485 int32_t
487  WPADDataFormat format);
488 
495 
496 void
498  void *data);
499 
503 int32_t
505  WPADLed led,
506  WPADControlLedCallback callback);
507 
511 int32_t
513  WPADDpdFormat mode,
514  WPADControlDpdCallback callback);
515 
521 
525 void
527  BOOL motorEnabled);
528 
532 int32_t
534  WPADSpeakerCmd mode,
536 
540 BOOL
542 
547 BOOL
549 
559 int32_t
561  void* data,
562  uint32_t size);
563 
567 uint8_t
569 
574 void
575 WPADSetSpeakerVolume(uint8_t volume);
576 
581 int32_t
583  BOOL *enabled,
584  WPADIsMplsAttachedCallback callback);
585 
590 int32_t
592 
596 int32_t
598  WPADInfo* outInfo);
599 
603 int32_t
605  WPADInfo* outInfo,
607 
621 int32_t
623  void *destination,
624  uint16_t size,
625  uint32_t address,
626  WPADReadMemoryCallback callback);
627 
641 int32_t
643  void *source,
644  uint32_t size,
645  uint32_t address,
646  WPADWriteMemoryCallback callback);
647 
655 int32_t
657  void *destination,
658  uint16_t size,
659  WPADPeripheralSpace peripheral,
660  uint32_t address,
661  WPADReadMemoryCallback callback);
662 
678 int32_t
680  void *source,
681  uint32_t size,
682  WPADPeripheralSpace peripheral,
683  uint32_t address,
684  WPADWriteMemoryCallback callback);
685 
692 int32_t
694  void *destination,
695  uint32_t address,
696  uint32_t size,
697  WPADReadMemoryCallback callback);
702 void
704  BOOL powerSave);
705 
709 BOOL
711 
715 void
717  WPADAddress* outAddress);
718 
722 void
724 
728 BOOL
730 
734 void
736 
740 BOOL
742 
746 void
748 
752 BOOL
754 
758 void
760 
761 void
762 WPADSetAutoSleepTime(uint8_t time);
763 
768 BOOL
770 
786 BOOL
788  const char* deviceName);
789 
796  WPADConnectCallback callback);
803  WPADExtensionCallback callback);
804 
807  WPADSamplingCallback callback);
808 
809 void
811 
815 void
817 
821 bool
823  uint32_t count);
824 
829 int32_t
831  uint8_t* hidData);
832 
833 
840 BOOL
842 
848 BOOL
850  WPADLed led,
851  WPADiSendCallback callback);
852 
858 BOOL
860  WPADDataFormat dataFormat,
861  BOOL powerSave,
862  WPADiSendCallback callback);
863 
869 BOOL
871  WPADInfo* outInfo,
872  WPADiSendCallback callback);
873 
879 BOOL
881  BOOL enable,
882  WPADiSendCallback callback);
883 
889 BOOL
891  BOOL enable,
892  WPADiSendCallback callback);
893 
899 BOOL
901  BOOL enable,
902  WPADiSendCallback callback);
903 
909 BOOL
911  BOOL mute,
912  WPADiSendCallback callback);
913 
919 BOOL
921  void* source,
922  uint32_t size);
923 
928 BOOL
930  uint8_t byte,
931  uint32_t address,
932  WPADiSendCallback callback);
933 
939 BOOL
941  void* source,
942  uint32_t size,
943  uint32_t address,
944  WPADiSendCallback callback);
945 
951 BOOL
953  void* destination,
954  uint16_t size,
955  uint32_t address,
956  WPADiSendCallback callback);
957 
962 uint32_t*
964 
969 uint8_t
971 
980 void
981 WPADSetGameTitleUtf16(uint16_t* title);
982 
991 int32_t
993  uint16_t** outTitle);
994 
999 int32_t
1001  OSTime* timestamp);
1002 
1017 int32_t
1019  void* source,
1020  uint16_t size,
1021  uint32_t offset,
1022  WPADWriteMemoryCallback callback);
1023 
1035 int32_t
1037  void* destination,
1038  uint16_t size,
1039  uint32_t offset,
1040  WPADReadMemoryCallback callback);
1041 
1049 
1050 #ifdef __cplusplus
1051 }
1052 #endif
1053 
int64_t OSTime
Definition: time.h:18
uint8_t extensionType
A value from WPADExtensionType.
Definition: wpad.h:336
uint32_t extensionAttached
Definition: wpad.h:362
uint8_t btDeviceAddress[6]
Definition: wpad.h:406
WPADVec2D rightStick
Definition: wpad.h:345
uint32_t capacity
Definition: wpad.h:395
uint32_t batteryLow
Definition: wpad.h:363
uint8_t data[0x30]
Definition: wpad.h:384
uint32_t batteryNearEmpty
Definition: wpad.h:364
uint32_t irEnabled
Definition: wpad.h:360
uint8_t backIndex
Definition: wpad.h:392
uint32_t buttons
Definition: wpad.h:342
WPADDataFormat dataFormat
Definition: wpad.h:346
uint8_t frontIndex
Definition: wpad.h:391
uint8_t firmware
Definition: wpad.h:368
uint8_t batteryLevel
Definition: wpad.h:365
WPADiQueueElement * elements
Definition: wpad.h:393
uint8_t led
Definition: wpad.h:366
uint32_t speakerEnabled
Definition: wpad.h:361
WPADVec2D leftStick
Definition: wpad.h:344
uint8_t protocol
Definition: wpad.h:367
int16_t x
x.
Definition: wpad.h:326
int16_t y
y.
Definition: wpad.h:328
BOOL WPADiSendWriteDataCmd(WPADiQueue *cmdQueue, uint8_t byte, uint32_t address, WPADiSendCallback callback)
Queues HID Report for a single-byte memory write.
int32_t WPADControlLed(WPADChan channel, WPADLed led, WPADControlLedCallback callback)
Controls the associated WPADChan's LEDs.
void WPADGetAddress(WPADChan chan, WPADAddress *outAddress)
Retrieves the bluetooth address of the controller.
BOOL WPADIsSpeakerEnabled(WPADChan chan)
Returns whether the wiimote's speaker is enabled.
int32_t WPADiWriteGameData(WPADChan channel, void *source, uint16_t size, uint32_t offset, WPADWriteMemoryCallback callback)
Write custom game data to the controller's EEPROM.
BOOL WPADIsEnableWBC()
Returns whether Wii Balance Boards are supported.
void(* WPADiSendCallback)(WPADChan chan, int32_t status)
Definition: wpad.h:441
WPADButton
Wii Remote buttons.
Definition: wpad.h:107
void WPADiShutdown()
WPADDataFormat
Data format.
Definition: wpad.h:45
BOOL WPADiSendReadData(WPADiQueue *cmdQueue, void *destination, uint16_t size, uint32_t address, WPADiSendCallback callback)
Queues HID Report for a memory read used internally by WPADReadMemory.
void(* WPADiWriteGameDataCallback)(WPADChan chan, int32_t status)
Callback called when WPADiWriteGameData completes,.
Definition: wpad.h:447
BOOL WPADiSendWriteData(WPADiQueue *cmdQueue, void *source, uint32_t size, uint32_t address, WPADiSendCallback callback)
Queues HID Report for a multi-byte memory write used internally by WPADWriteMemory.
WUT_ENUM_BITMASK_TYPE(WPADLed)
BOOL WPADStartSyncDeviceEx(WPADAddress *deviceAddress, const char *deviceName)
Starts attempts to sync with a WPAD with the specified properties, if unable to do so,...
int32_t WPADGetInfoAsync(WPADChan channel, WPADInfo *outInfo, WPADGetInfoCallback)
Retrieves status info from the controller asynchronously.
BOOL WPADIsEnabledURC()
Returns whether Wii U Pro Controllers are supported.
void WPADControlMotor(WPADChan chan, BOOL motorEnabled)
Controls the associated WPADChan's rumble motor.
WPADExtensionCallback WPADSetExtensionCallback(WPADChan chan, WPADExtensionCallback callback)
Set the function to be run upon extension connect and motion plus activation.
BOOL WPADiSendGetContStat(WPADiQueue *cmdQueue, WPADInfo *outInfo, WPADiSendCallback callback)
Queues HID report for a controller status request used internally by WPADGetInfoAsync and several oth...
void WPADRead(WPADChan chan, void *data)
int32_t WPADReadMemoryAsync(WPADChan channel, void *destination, uint16_t size, uint32_t address, WPADReadMemoryCallback callback)
Reads from the device's memory.
WPADChan
Wii Remote channel.
Definition: wpad.h:26
void WPADSetPowerSaveMode(WPADChan chan, BOOL powerSave)
Sets power save mode, this makes the controller only report input data when it changes.
uint8_t WPADGetSpeakerVolume()
Returns the global Wii Remote speaker volume.
BOOL WPADiSendSetPort(WPADiQueue *cmdQueue, WPADLed led, WPADiSendCallback callback)
Queues HID Report for setting LEDs used internally by WPADControlLed.
int32_t WPADSetDataFormat(WPADChan chan, WPADDataFormat format)
Sets the data format of the controller, can be used to reduce or increase the amount of data received...
BOOL WPADiSendEnableDPD(WPADiQueue *cmdQueue, BOOL enable, WPADiSendCallback callback)
Queues HID Report for enabling the IR Camera clock used internally by WPADControlDpd.
void WPADDisconnect(WPADChan chan)
Immediately disconnects the associated controller.
BOOL WPADiSendEnableDPDCSB(WPADiQueue *cmdQueue, BOOL enable, WPADiSendCallback callback)
Queues HID Report for enabling IR Camera used internally by WPADControlDpd.
BOOL WPADIsMotorEnabled()
Returns whether motors are disabled globally.
WPADPeripheralSpace
WPAD Peripheral Memory Space Prefixes.
Definition: wpad.h:313
int32_t WPADWriteMemoryAsync(WPADChan channel, void *source, uint32_t size, uint32_t address, WPADWriteMemoryCallback callback)
Writes to the device's memory.
void(* WPADGetInfoCallback)(WPADChan chan, int32_t status)
Definition: wpad.h:416
int32_t WPADGetGameDataTimestamp(WPADChan chan, OSTime *timestamp)
Get the time that game data was written.
int32_t WPADIsMplsAttached(WPADChan channel, BOOL *enabled, WPADIsMplsAttachedCallback callback)
Gets whether MotionPlus is enabled for the WPAD.
uint32_t * WPADiGetGameCode()
Game code (identifier), which may be saved to the EEPROM of connected controllers.
void WPADShutdown()
Cleans up and frees the WPAD library.
int32_t WPADiReadGameData(WPADChan channel, void *destination, uint16_t size, uint32_t offset, WPADReadMemoryCallback callback)
Read custom game data from the controller's EEPROM.
int32_t WPADGetGameTitleUtf16(WPADChan chan, uint16_t **outTitle)
Gets game title stored on specified controller.
bool WPADiIsAvailableCmdQueue(WPADiQueue *queue, uint32_t count)
Checks if there is enough space in the queue.
void WPADEnableWiiRemote(BOOL enable)
Enables/disables Wii Remote support.
WPADClassicButton
Classic Controller buttons.
Definition: wpad.h:155
void WPADInit()
Initialises the WPAD library for use.
BOOL WPADStartSyncDevice()
Starts searching for a WPAD controller in pairing mode and syncs with it.
void WPADEnableMotor(BOOL enable)
Enables/disables motors globally.
WPADDpdFormat WPADGetDpdFormat(WPADChan chan)
Returns the associated controller's IR mode.
int32_t WPADGetBLCalibration(WPADChan channel, void *destination, uint32_t address, uint32_t size, WPADReadMemoryCallback callback)
Read Balance Board calibration.
void(* WPADControlLedCallback)(WPADChan chan, int32_t status)
Definition: wpad.h:412
int32_t WPADControlDpd(WPADChan channel, WPADDpdFormat mode, WPADControlDpdCallback callback)
Controls the WPADChan's IR sensor.
BOOL WPADiSendMuteSpeaker(WPADiQueue *cmdQueue, BOOL mute, WPADiSendCallback callback)
Queues HID Report for muting speakers used internally by .
int32_t WPADWriteExtReg(WPADChan channel, void *source, uint32_t size, WPADPeripheralSpace peripheral, uint32_t address, WPADWriteMemoryCallback callback)
Writes to the registers of the Wii Remote's peripherals.
WPADDataFormat WPADGetDataFormat(WPADChan chan)
Gets the data format in use by the controller.
int32_t WPADIsMplsIntegrated(WPADChan channel)
Returns whether the WPADChan has MotionPlus integrated.
BOOL WPADiSendEnableSpeaker(WPADiQueue *cmdQueue, BOOL enable, WPADiSendCallback callback)
Queues HID Report for enabling speakers used internally by .
int32_t WPADProbe(WPADChan chan, WPADExtensionType *outExtensionType)
Identifies the extension connected to the associated controller.
void(* WPADIsMplsAttachedCallback)(WPADChan chan, int32_t status)
Definition: wpad.h:411
WPADSamplingCallback WPADSetSamplingCallback(WPADChan chan, WPADSamplingCallback callback)
BOOL WPADCanSendStreamData(WPADChan chan)
Returns whether it is possible to send data to the wiimote's speaker at this moment May return false ...
void WPADSetAutoSleepTime(uint8_t time)
WPADExtensionType
Extension type.
Definition: wpad.h:84
WPADSpeakerCmd
WPAD Speaker Command.
Definition: wpad.h:283
WPADLed
WPAD Led flags.
Definition: wpad.h:263
int32_t WPADSendStreamData(WPADChan chan, void *data, uint32_t size)
Sends data to be played by wiimote speaker make sure the data is in the format the speaker was initia...
WPADMplsMode
MotionPlus Mode.
Definition: wpad.h:300
int32_t WPADGetInfo(WPADChan channel, WPADInfo *outInfo)
Retrieves status info from the controller.
BOOL WPADiSendSetVibrator(WPADiQueue *cmdQueue)
Queues HID Report for Rumble Update.
void(* WPADExtensionCallback)(WPADChan chan, WPADExtensionType ext)
Callback called when the active extension changes.
Definition: wpad.h:433
void(* WPADSamplingCallback)(WPADChan chan)
Definition: wpad.h:428
BOOL WPADiSendStreamData(WPADiQueue *cmdQueue, void *source, uint32_t size)
Queues HID Report for sending speaker stream data used internally by WPADSendStreamData.
WPADMplsMode WPADiGetMplsStatus()
Get MotionPlus mode.
int32_t WPADControlSpeaker(WPADChan chan, WPADSpeakerCmd mode, WPADControlSpeakerCallback)
Sets the wiimote speaker mode.
void(* WPADReadMemoryCallback)(WPADChan chan, int32_t status)
Callback called when data is attempted to be read from controller memory.
Definition: wpad.h:421
BOOL WPADiSendSetReportType(WPADiQueue *cmdQueue, WPADDataFormat dataFormat, BOOL powerSave, WPADiSendCallback callback)
Queues HID Report for setting data reporting mode used internally by WPADSetPowerSaveMode.
void WPADSetSpeakerVolume(uint8_t volume)
Sets the global Wii Remote speaker volume only applies to later initialized Wii Remote speakers.
void WPADEnableWBC(BOOL enable)
Enables/disables Wii Balance Board support.
WPADConnectCallback WPADSetConnectCallback(WPADChan chan, WPADConnectCallback callback)
Set function to be run upon controller connect/disconnect.
void(* WPADControlDpdCallback)(WPADChan chan, int32_t status)
Definition: wpad.h:413
void(* WPADConnectCallback)(WPADChan chan, int32_t status)
Callback called when a controller connects or disconnects.
Definition: wpad.h:439
WPADNunchukButton
Nunchuk buttons.
Definition: wpad.h:138
uint8_t WPADiGetGameType()
Game type, which may be saved to the EEPROM of connected controllers.
WPADDpdFormat
WPAD Infrared Format. For more information see IR Data Formats
Definition: wpad.h:273
void(* WPADControlSpeakerCallback)(WPADChan chan, int32_t status)
Definition: wpad.h:414
void(* WPADWriteMemoryCallback)(WPADChan chan, int32_t status)
Callback called when data is attempted to be written to controller memory.
Definition: wpad.h:426
void WPADiClearQueue(WPADiQueue *queue)
Clears all elements from queue.
void WPADSetGameTitleUtf16(uint16_t *title)
Sets game title for all connected controllers.
void WPADEnableURCC(BOOL enable)
Enables/disables Wii U Pro Controller support.
int32_t WPADReadExtReg(WPADChan channel, void *destination, uint16_t size, WPADPeripheralSpace peripheral, uint32_t address, WPADReadMemoryCallback callback)
Reads from the registers of the Wii Remote's peripherals.
int32_t WPADiHIDParser(WPADChan channel, uint8_t *hidData)
Parses incoming HID report data for a controller.
WPADProButton
Pro Controller buttons.
Definition: wpad.h:206
BOOL WPADGetPowerSaveMode(WPADChan chan)
@ WPAD_BUTTON_DOWN
The down button of the D-pad.
Definition: wpad.h:113
@ WPAD_BUTTON_A
The A button.
Definition: wpad.h:125
@ WPAD_BUTTON_C
The C button on the Nunchuk extension.
Definition: wpad.h:131
@ WPAD_BUTTON_LEFT
The left button of the D-pad.
Definition: wpad.h:109
@ WPAD_BUTTON_2
The 2 button.
Definition: wpad.h:119
@ WPAD_BUTTON_MINUS
The - button.
Definition: wpad.h:127
@ WPAD_BUTTON_Z
The Z button on the Nunchuk extension.
Definition: wpad.h:129
@ WPAD_BUTTON_UP
The up button of the D-pad.
Definition: wpad.h:115
@ WPAD_BUTTON_PLUS
The + button.
Definition: wpad.h:117
@ WPAD_BUTTON_1
The 1 button.
Definition: wpad.h:121
@ WPAD_BUTTON_RIGHT
The right button of the D-pad.
Definition: wpad.h:111
@ WPAD_BUTTON_HOME
The HOME button.
Definition: wpad.h:133
@ WPAD_BUTTON_B
The B button.
Definition: wpad.h:123
@ WPAD_FMT_DRUM
Guitar Hero World Tour Drums.
Definition: wpad.h:73
@ WPAD_FMT_TAIKO
Wii Remote, Taiko no Testsujin TaTaCon.
Definition: wpad.h:77
@ WPAD_FMT_CLASSIC
Wii Remote buttons, Classic Controller.
Definition: wpad.h:59
@ WPAD_FMT_CORE_ACC
Wii Remote buttons and accelerometer.
Definition: wpad.h:49
@ WPAD_FMT_CORE
Wii Remote buttons.
Definition: wpad.h:47
@ WPAD_FMT_NUNCHUK
Wii Remote buttons, Nunchuk.
Definition: wpad.h:53
@ WPAD_FMT_CLASSIC_ACC
Wii Remote buttons, accelerometer, Classic Controller.
Definition: wpad.h:61
@ WPAD_FMT_CORE_ACC_DPD_FULL
Wii Remote buttons, accelerometer and IR pos with bounds.
Definition: wpad.h:65
@ WPAD_FMT_PRO_CONTROLLER
Wii U Pro Controller.
Definition: wpad.h:79
@ WPAD_FMT_BALANCE_BOARD
Wii Balance Board.
Definition: wpad.h:71
@ WPAD_FMT_NUNCHUK_ACC
Wii Remote buttons, accelerometer, Nunchuk.
Definition: wpad.h:55
@ WPAD_FMT_CORE_ACC_DPD
Wii Remote buttons, accelerometer and IR pos.
Definition: wpad.h:51
@ WPAD_FMT_MPLUS
Wii Remote buttons, accelerometer, IR pos, Motion Plus gyroscope.
Definition: wpad.h:75
@ WPAD_FMT_GUITAR
Guitar Hero Guitar.
Definition: wpad.h:69
@ WPAD_FMT_TRAIN
Wii Remote, Densha De GO! Shinkansen Controller.
Definition: wpad.h:67
@ WPAD_FMT_CLASSIC_ACC_DPD
Wii Remote buttons, accelerometer, IR pos, Classic Controller.
Definition: wpad.h:63
@ WPAD_FMT_NUNCHUK_ACC_DPD
Wii Remote buttons, accelerometer, IR pos, Nunchuk.
Definition: wpad.h:57
@ WPAD_CHAN_2
Channel 2.
Definition: wpad.h:32
@ WPAD_CHAN_5
Channel 5.
Definition: wpad.h:38
@ WPAD_CHAN_6
Channel 6.
Definition: wpad.h:40
@ WPAD_CHAN_0
Channel 0.
Definition: wpad.h:28
@ WPAD_CHAN_4
Channel 4.
Definition: wpad.h:36
@ WPAD_CHAN_1
Channel 1.
Definition: wpad.h:30
@ WPAD_CHAN_3
Channel 3.
Definition: wpad.h:34
@ WPAD_PERIPHERAL_SPACE_EXTENSION
Any extension other than Motion Plus.
Definition: wpad.h:316
@ WPAD_PERIPHERAL_SPACE_SPEAKER
Definition: wpad.h:314
@ WPAD_PERIPHERAL_SPACE_DPD
Infrared.
Definition: wpad.h:319
@ WPAD_PERIPHERAL_SPACE_MOTIONPLUS
Definition: wpad.h:317
@ WPAD_CLASSIC_BUTTON_UP
The up button of the D-pad.
Definition: wpad.h:157
@ WPAD_CLASSIC_BUTTON_R
The R button.
Definition: wpad.h:173
@ WPAD_CLASSIC_BUTTON_ZL
The ZL button.
Definition: wpad.h:171
@ WPAD_CLASSIC_STICK_R_EMULATION_DOWN
The emulated down button on the right stick.
Definition: wpad.h:199
@ WPAD_CLASSIC_BUTTON_DOWN
The down button of the D-pad.
Definition: wpad.h:183
@ WPAD_CLASSIC_BUTTON_A
The A button.
Definition: wpad.h:165
@ WPAD_CLASSIC_BUTTON_ZR
The ZR button.
Definition: wpad.h:161
@ WPAD_CLASSIC_STICK_R_EMULATION_UP
The emulated up button on the right stick.
Definition: wpad.h:201
@ WPAD_CLASSIC_STICK_L_EMULATION_UP
The emulated up button on the left stick.
Definition: wpad.h:193
@ WPAD_CLASSIC_BUTTON_B
The B button.
Definition: wpad.h:169
@ WPAD_CLASSIC_BUTTON_Y
The Y button.
Definition: wpad.h:167
@ WPAD_CLASSIC_STICK_L_EMULATION_LEFT
The emulated left button on the left stick.
Definition: wpad.h:187
@ WPAD_CLASSIC_STICK_R_EMULATION_RIGHT
The emulated right button on the right stick.
Definition: wpad.h:197
@ WPAD_CLASSIC_STICK_L_EMULATION_RIGHT
The emulated right button on the left stick.
Definition: wpad.h:189
@ WPAD_CLASSIC_BUTTON_PLUS
The + button.
Definition: wpad.h:175
@ WPAD_CLASSIC_BUTTON_RIGHT
The right button of the D-pad.
Definition: wpad.h:185
@ WPAD_CLASSIC_STICK_R_EMULATION_LEFT
The emulated left button on the right stick.
Definition: wpad.h:195
@ WPAD_CLASSIC_BUTTON_LEFT
The left button of the D-pad.
Definition: wpad.h:159
@ WPAD_CLASSIC_BUTTON_L
The L button.
Definition: wpad.h:181
@ WPAD_CLASSIC_BUTTON_MINUS
The - button.
Definition: wpad.h:179
@ WPAD_CLASSIC_BUTTON_X
The X button.
Definition: wpad.h:163
@ WPAD_CLASSIC_STICK_L_EMULATION_DOWN
The emulated down button on the left stick.
Definition: wpad.h:191
@ WPAD_CLASSIC_BUTTON_HOME
The HOME button.
Definition: wpad.h:177
@ WPAD_EXT_MPLUS_CLASSIC
Motion Plus with Classic Controller.
Definition: wpad.h:96
@ WPAD_EXT_MPLUS_NUNCHUK
Motion Plus with Nunchuk.
Definition: wpad.h:94
@ WPAD_EXT_DEV_NOT_FOUND
No controller found.
Definition: wpad.h:100
@ WPAD_EXT_MPLUS
Motion Plus.
Definition: wpad.h:92
@ WPAD_EXT_UNKNOWN
Extension unknown.
Definition: wpad.h:102
@ WPAD_EXT_NUNCHUK
Nunchuk.
Definition: wpad.h:88
@ WPAD_EXT_CLASSIC
Classic Controller.
Definition: wpad.h:90
@ WPAD_EXT_PRO_CONTROLLER
Pro Controller.
Definition: wpad.h:98
@ WPAD_EXT_CORE
Wii Remote with no extension.
Definition: wpad.h:86
@ WPAD_SPEAKER_CMD_MUTE
Mutes speaker.
Definition: wpad.h:289
@ WPAD_SPEAKER_CMD_ON_ALT
Does the same as WPAD_SPEAKER_CMD_ON.
Definition: wpad.h:295
@ WPAD_SPEAKER_CMD_UNMUTE
Unmutes speaker.
Definition: wpad.h:291
@ WPAD_SPEAKER_CMD_OFF
Deinitializes and turns off speaker.
Definition: wpad.h:285
@ WPAD_SPEAKER_CMD_PLAY
Allows sound to play.
Definition: wpad.h:293
@ WPAD_SPEAKER_CMD_ON
Turns on and initializes speaker to use 4-bit Yamaha ADPCM data format at 3000 Hz.
Definition: wpad.h:287
@ WPAD_LED_TWO
Definition: wpad.h:265
@ WPAD_LED_FOUR
Definition: wpad.h:267
@ WPAD_LED_THREE
Definition: wpad.h:266
@ WPAD_LED_ONE
Definition: wpad.h:264
@ WPAD_MPLS_MODE_MPLS_CLASSIC
Classic passthrough mode.
Definition: wpad.h:307
@ WPAD_MPLS_MODE_MPLS_ONLY
MotionPlus exclusive mode.
Definition: wpad.h:303
@ WPAD_MPLS_MODE_DISABLE
Definition: wpad.h:301
@ WPAD_MPLS_MODE_MPLS_NUNCHUK
Nunchuk passthrough mode.
Definition: wpad.h:305
@ WPAD_NUNCHUK_STICK_EMULATION_LEFT
The emulated left button on the Nunchuk stick or the left button of the D-pad on the Wii Remote.
Definition: wpad.h:140
@ WPAD_NUNCHUK_STICK_EMULATION_UP
The emulated up button on the Nunchuk stick or the up button of the D-pad on the Wii Remote.
Definition: wpad.h:146
@ WPAD_NUNCHUK_STICK_EMULATION_RIGHT
The emulated right button on the Nunchuk stick or the right button of the D-pad on the Wii Remote.
Definition: wpad.h:142
@ WPAD_NUNCHUK_BUTTON_Z
The Z button.
Definition: wpad.h:148
@ WPAD_NUNCHUK_BUTTON_C
The C button.
Definition: wpad.h:150
@ WPAD_NUNCHUK_STICK_EMULATION_DOWN
The emulated down button on the Nunchuk stick or the down button of the D-pad on the Wii Remote.
Definition: wpad.h:144
@ WPAD_DPD_FMT_EXTENDED
Definition: wpad.h:277
@ WPAD_DPD_FMT_BASIC
Definition: wpad.h:276
@ WPAD_DPD_FMT_FULL
Definition: wpad.h:278
@ WPAD_DPD_FMT_NONE
Disable IR.
Definition: wpad.h:275
@ WPAD_PRO_BUTTON_PLUS
The + button.
Definition: wpad.h:228
@ WPAD_PRO_BUTTON_B
The B button.
Definition: wpad.h:220
@ WPAD_PRO_RESERVED
Reserved.
Definition: wpad.h:224
@ WPAD_PRO_BUTTON_DOWN
The down button of the D-pad.
Definition: wpad.h:236
@ WPAD_PRO_BUTTON_X
The X button.
Definition: wpad.h:214
@ WPAD_PRO_BUTTON_HOME
The HOME button.
Definition: wpad.h:230
@ WPAD_PRO_BUTTON_Y
The Y button.
Definition: wpad.h:218
@ WPAD_PRO_STICK_R_EMULATION_UP
The emulated up button on the right stick.
Definition: wpad.h:252
@ WPAD_PRO_STICK_L_EMULATION_UP
The emulated up button on the left stick.
Definition: wpad.h:244
@ WPAD_PRO_BUTTON_LEFT
The left button of the D-pad.
Definition: wpad.h:210
@ WPAD_PRO_STICK_L_EMULATION_DOWN
The emulated down button on the left stick.
Definition: wpad.h:246
@ WPAD_PRO_BUTTON_MINUS
The - button.
Definition: wpad.h:232
@ WPAD_PRO_STICK_R_EMULATION_DOWN
The emulated down button on the right stick.
Definition: wpad.h:254
@ WPAD_PRO_TRIGGER_R
The right trigger button.
Definition: wpad.h:226
@ WPAD_PRO_STICK_R_EMULATION_LEFT
The emulated left button on the right stick.
Definition: wpad.h:256
@ WPAD_PRO_STICK_L_EMULATION_RIGHT
The emulated right button on the left stick.
Definition: wpad.h:250
@ WPAD_PRO_BUTTON_STICK_L
The left stick button.
Definition: wpad.h:242
@ WPAD_PRO_STICK_L_EMULATION_LEFT
The emulated left button on the left stick.
Definition: wpad.h:248
@ WPAD_PRO_TRIGGER_L
The left trigger button.
Definition: wpad.h:234
@ WPAD_PRO_BUTTON_STICK_R
The right stick button.
Definition: wpad.h:240
@ WPAD_PRO_TRIGGER_ZL
The ZL button.
Definition: wpad.h:222
@ WPAD_PRO_TRIGGER_ZR
The ZR button.
Definition: wpad.h:212
@ WPAD_PRO_BUTTON_UP
The up button of the D-pad.
Definition: wpad.h:208
@ WPAD_PRO_STICK_R_EMULATION_RIGHT
The emulated right button on the right stick.
Definition: wpad.h:258
@ WPAD_PRO_BUTTON_A
The A button.
Definition: wpad.h:216
@ WPAD_PRO_BUTTON_RIGHT
The right button of the D-pad.
Definition: wpad.h:238
Bluetooth device address.
Definition: wpad.h:405
Controller status info.
Definition: wpad.h:359
2D vector.
Definition: wpad.h:324
int32_t BOOL
Definition: wut_types.h:7