summaryrefslogtreecommitdiff
path: root/include/user/ctrl.h
diff options
context:
space:
mode:
authordevnoname1202016-12-04 19:05:53 +0100
committerGitHub2016-12-04 19:05:53 +0100
commite2a0ab280605100688c0dd31fa0b9ea203af8c8a (patch)
tree492a1d7e89c53509e6cc988f43b676a7c5ce814d /include/user/ctrl.h
parentadd missing ScePromoterUtil module (diff)
parentAdded description for intercept (diff)
downloadvds-libraries-e2a0ab280605100688c0dd31fa0b9ea203af8c8a.tar.gz
Merge pull request #97 from vitasdk/ctrl-intercept
Add button intercept headers
Diffstat (limited to 'include/user/ctrl.h')
-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