Merge pull request #57 from xyzshantaram/patch-1

pspctrl.h: Document PSP_CTRL_MODE_DIGITAL behavior
This commit is contained in:
Francisco Javier Trujillo Mata
2021-11-03 21:31:17 +01:00
committed by GitHub

View File

@@ -81,7 +81,7 @@ enum PspCtrlButtons
/** Controller mode. */ /** Controller mode. */
enum PspCtrlMode enum PspCtrlMode
{ {
/* Digitial. */ /* Digital. */
PSP_CTRL_MODE_DIGITAL = 0, PSP_CTRL_MODE_DIGITAL = 0,
/* Analog. */ /* Analog. */
PSP_CTRL_MODE_ANALOG PSP_CTRL_MODE_ANALOG
@@ -164,7 +164,8 @@ int sceCtrlGetSamplingCycle(int *pcycle);
/** /**
* Set the controller mode. * Set the controller mode.
* *
* @param mode - One of ::PspCtrlMode. * @param mode - One of ::PspCtrlMode. If this is PSP_CTRL_MODE_DIGITAL, no data about the analog stick
* will be present in the SceCtrlData struct read by SceCtrlReadBuffer.
* *
* @return The previous mode. * @return The previous mode.
*/ */