Line 6:
Line 6:
!Prototype
!Prototype
!Description
!Description
+
|-
+
|VPADGetLcdMode
+
|int VPADGetLcdMode(int padnum, VPADDisplayMode *lcdmode);
+
|Gets LCD mode of gamepad and stores it in ''lcdmode''
+
|-
+
|VPADSetLcdMode
+
|int VPADSetLcdMode(int padnum, VPADDisplayMode *lcdmode);
+
|Sets LCD mode of gamepad based on ''lcdmode''
|-
|-
|VPADRead
|VPADRead
Line 12:
Line 20:
|}
|}
−
==Structures==
+
==Structures/Enums==
+
===VPAD Display Mode===
+
Can be gotten using VPADGetLcdMode().
+
+
<syntaxhighlight lang="C">
+
typedef enum {
+
DISPLAY_MODE_STANDBY = 0, /* This is probably the mode you can set as a user in HOME - Turn display off */
+
DISPLAY_MODE_OFF = 1, /* This turns off the display completely, the gamepad can be used as a pure input controller */
+
DISPLAY_MODE_DEFAULT = 0xFF /* Default mode */
+
} VPADDisplayMode;
+
</syntaxhighlight>
+
===VPAD Data===
===VPAD Data===
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]].
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]].