From 7e49a43f60065924e8f49a095b97892c8a5039a7 Mon Sep 17 00:00:00 2001 From: Yifan Lu Date: Fri, 18 Nov 2016 08:40:13 -0800 Subject: Add button intercept headers --- include/user/ctrl.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include/user/ctrl.h') diff --git a/include/user/ctrl.h b/include/user/ctrl.h index 0b70b71..eafef75 100644 --- a/include/user/ctrl.h +++ b/include/user/ctrl.h @@ -246,6 +246,24 @@ int sceCtrlGetControllerPortInfo(SceCtrlPortInfo *info); * @return 0, <0 on error. */ int sceCtrlGetBatteryInfo(int port, SceUInt8 *batt); + +/** + * Sets intercept + * + * @param[in] intercept Boolean value + * + * @return 0, < 0 on error + */ +int sceCtrlSetButtonIntercept(int intercept); + +/** + * Gets intercept + * + * @param[out] intercept Boolean value + * + * @return 0, < 0 on error + */ +int sceCtrlGetButtonIntercept(int *intercept); #ifdef __cplusplus } #endif -- cgit v1.2.3 From bdc36a667c63da7db4b8fede20540372820c9731 Mon Sep 17 00:00:00 2001 From: Yifan Lu Date: Tue, 29 Nov 2016 12:48:41 -0800 Subject: Added description for intercept --- include/user/ctrl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/user/ctrl.h') diff --git a/include/user/ctrl.h b/include/user/ctrl.h index eafef75..5567b8a 100644 --- a/include/user/ctrl.h +++ b/include/user/ctrl.h @@ -249,7 +249,10 @@ int sceCtrlGetBatteryInfo(int port, SceUInt8 *batt); /** * Sets intercept - * + * + * If true, allows the current thread to intercept controls. The use case + * might be, for example, a game plugin that wishes to capture input without + * having the input sent to the game thread. * @param[in] intercept Boolean value * * @return 0, < 0 on error -- cgit v1.2.3