diff options
-rw-r--r-- | include/kernel/ctrl.h | 26 |
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. |