summaryrefslogtreecommitdiff
path: root/include/user/ctrl.h
diff options
context:
space:
mode:
authorJeffrey Pfau2016-08-08 20:46:42 -0700
committerJeffrey Pfau2016-08-08 20:46:42 -0700
commit9a6ee44295aeaef827ebced24ac3d27861f7eaf0 (patch)
treee516f4de861bd47dd2f47e362f40d0edc8db8f40 /include/user/ctrl.h
parentFixed 5 library nids (diff)
downloadvds-libraries-9a6ee44295aeaef827ebced24ac3d27861f7eaf0.tar.gz
Add sceCtrlSetActuator
Diffstat (limited to '')
-rw-r--r--include/user/ctrl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/user/ctrl.h b/include/user/ctrl.h
index 9ac6d48..a05f9f6 100644
--- a/include/user/ctrl.h
+++ b/include/user/ctrl.h
@@ -68,6 +68,12 @@ typedef struct SceCtrlRapidFireRule {
unsigned int Break;
} SceCtrlRapidFireRule;
+/** Structure to pass as argument to ::sceCtrlSetActuator */
+typedef struct SceCtrlActuator {
+ int enable; //!< Enable the actuator vibration
+ int unk; //!< Unknown
+} SceCtrlActuator;
+
/**
* Set the controller mode.
*
@@ -151,6 +157,16 @@ int sceCtrlSetRapidFire(int port, int idx, const SceCtrlRapidFireRule* pRule);
*/
int sceCtrlClearRapidFire(int port, int idx);
+/**
+ * Control the actuator (vibrate) on paired controllers.
+ *
+ * @param[in] port - use 1 for the first paired controller, etc.
+ * @param[in] state - see ::SceCtrlActuator
+ *
+ * @return 0, <0 on error.
+ */
+int sceCtrlSetActuator(int port, const SceCtrlActuator* pState);
+
#ifdef __cplusplus
}
#endif