From 9a6ee44295aeaef827ebced24ac3d27861f7eaf0 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 8 Aug 2016 20:46:42 -0700 Subject: Add sceCtrlSetActuator --- include/user/ctrl.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/user/ctrl.h') 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 -- cgit v1.2.3