Changes

16 bytes added ,  22:52, 9 April 2015
Clarify VPADRead() parameters
Line 8: Line 8:  
|-
 
|-
 
|VPADRead
 
|VPADRead
|int VPADRead(int padnum, void *buffer, int length, int *err);
+
|int VPADRead(int padnum, VPADData *buffer, int num_datasets, int *err);
 
|Stores raw controller data in ''buffer'' for the specified Gamepad
 
|Stores raw controller data in ''buffer'' for the specified Gamepad
 
|}
 
|}
Line 14: Line 14:  
==Structures==
 
==Structures==
 
===VPAD Data===
 
===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. The first three words of a datset are bitmasks of the flags listed [[vpad.rpl#Buttons|below]].
+
Can be gotten using VPADRead(), num_datasets seems to control the max amount of "datasets" to keep. A single dataset containing raw controller data is 0xAC bytes. The first three words of a datset are bitmasks of the flags listed [[vpad.rpl#Buttons|below]].
    
<syntaxhighlight lang="C">
 
<syntaxhighlight lang="C">
203

edits