From 5ec99399cc3d390121d9679a096dd900ae06c956 Mon Sep 17 00:00:00 2001 From: rereprep Date: Sun, 9 Apr 2017 20:21:46 +0300 Subject: Update ctrl.h (#155) --- include/kernel/ctrl.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'include/kernel/ctrl.h') 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 @@ -165,6 +165,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 * -- cgit v1.2.3