In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "Vpad.rpl"

From WiiUBrew
Jump to navigation Jump to search
(Initial Page)
 
Line 9: Line 9:
 
|VPADRead
 
|VPADRead
 
|void *VPADRead(int chan, void *buffer, int length, int* err);
 
|void *VPADRead(int chan, void *buffer, int length, int* err);
|Stores raw controller data in buffer*
+
|Stores raw controller data in buffer
 
|}
 
|}
  

Revision as of 00:15, 5 April 2015

This controls communication with the Gamepad, using VPADBASE internally.

Functions

Name Prototype Description
VPADRead void *VPADRead(int chan, void *buffer, int length, int* err); Stores raw controller data in buffer

VPAD Data

Can be gotten using VPADRead(), length seems to control the max amount of "datasets" to keep. A single dataset containing raw controller data is 0xAC bytes.

Structure

Offset Length Description
0xC 8 Left Joystick, vectors for X and Y
0x14 8 Right Joystick, vectors for X and Y
0xA0 1 Something related to volume slider
0xA1 1 Battery related. Charge level?
0xA3 1 Something related to volume slider(one less than 0xA0)
0xA4 8 Padding?