summaryrefslogtreecommitdiff
path: root/include/kernel/ctrl.h
diff options
context:
space:
mode:
authorrereprep2017-04-09 20:21:46 +0300
committerdevnoname1202017-04-09 19:21:46 +0200
commit5ec99399cc3d390121d9679a096dd900ae06c956 (patch)
treeaee8ac9eb1ec945c9fa70956fff6a58d8ff49c7e /include/kernel/ctrl.h
parentUpdate db.yml (#154) (diff)
downloadvds-libraries-5ec99399cc3d390121d9679a096dd900ae06c956.tar.gz
Update ctrl.h (#155)
Diffstat (limited to 'include/kernel/ctrl.h')
-rw-r--r--include/kernel/ctrl.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/kernel/ctrl.h b/include/kernel/ctrl.h
index 60ff673..ead8db9 100644
--- a/include/kernel/ctrl.h
+++ b/include/kernel/ctrl.h
@@ -166,6 +166,32 @@ int sceCtrlReadBufferPositive(int port, SceCtrlData *pad_data, int count);
int sceCtrlReadBufferNegative(int port, SceCtrlData *pad_data, int count);
/**
+ * Get the controller extended 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 sceCtrlPeekBufferPositiveExt(int port, SceCtrlData *pad_data, int count);
+
+/**
+ * Get the controller extended state information (polling, negative 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 sceCtrlPeekBufferNegativeExt(int port, SceCtrlData *pad_data, int count);
+
+/**
* Set rules for button rapid fire
*
* @param[in] port - use 0.