summaryrefslogtreecommitdiff
path: root/include/user/ctrl.h
diff options
context:
space:
mode:
authorFrancisco José García García2018-01-14 17:20:18 +0100
committerGitHub2018-01-14 17:20:18 +0100
commit89614c31b567ec9e38a1e4df1dce743d05ed82a6 (patch)
treebab0d3904711ad85e89e191fd53b89f252f0e157 /include/user/ctrl.h
parentAdded two more bruteforced SceDisplay nids (diff)
parentpsp2: Add sceCtrlPeekBufferPositiveExt2 (diff)
downloadvds-libraries-89614c31b567ec9e38a1e4df1dce743d05ed82a6.tar.gz
Merge pull request #283 from d3m3vilurr/update-ctrl
psp2: Add sceCtrlPeekBufferPositiveExt2
Diffstat (limited to 'include/user/ctrl.h')
-rw-r--r--include/user/ctrl.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/user/ctrl.h b/include/user/ctrl.h
index 7bca5b9..0d1b02c 100644
--- a/include/user/ctrl.h
+++ b/include/user/ctrl.h
@@ -18,7 +18,7 @@ typedef enum SceCtrlErrorCode {
} SceCtrlErrorCode;
/** Enumeration for the digital controller buttons.
- * @note - L1/R1/L3/R3 only can bind using ::sceCtrlReadBufferPositiveExt2
+ * @note - L1/R1/L3/R3 only can bind using ::sceCtrlPeekBufferPositiveExt2 and ::sceCtrlReadBufferPositiveExt2
* @note - Values bigger than 0x00010000 can be intercepted only with shell privileges
*/
typedef enum SceCtrlButtons {
@@ -171,6 +171,19 @@ int sceCtrlGetSamplingMode(SceCtrlPadInputMode *pMode);
int sceCtrlPeekBufferPositive(int port, SceCtrlData *pad_data, int count);
/**
+ * Get the controller state information (polling, positive logic).
+ *
+ * This function will bind L/R trigger value to L1/R1 instead of LTRIGGER/RTRIGGER
+ *
+ * @param[in] port - use 0.
+ * @param[out] *pad_data - see ::SceCtrlData.
+ * @param[in] count - Buffers count.
+ *
+ * @return Buffers count, between 1 and 'count'. <0 on error.
+ */
+int sceCtrlPeekBufferPositiveExt2(int port, SceCtrlData *pad_data, int count);
+
+/**
* Get the controller state information (polling, negative logic).
*
* @param[in] port - use 0.