summaryrefslogtreecommitdiff
path: root/include/user
diff options
context:
space:
mode:
Diffstat (limited to 'include/user')
-rw-r--r--include/user/ctrl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/user/ctrl.h b/include/user/ctrl.h
index 3ed96e5..dbd18cc 100644
--- a/include/user/ctrl.h
+++ b/include/user/ctrl.h
@@ -246,6 +246,27 @@ int sceCtrlGetControllerPortInfo(SceCtrlPortInfo *info);
* @return 0, <0 on error.
*/
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
+ */
+int sceCtrlSetButtonIntercept(int intercept);
+
+/**
+ * Gets intercept
+ *
+ * @param[out] intercept Boolean value
+ *
+ * @return 0, < 0 on error
+ */
+int sceCtrlGetButtonIntercept(int *intercept);
#ifdef __cplusplus
}
#endif