diff options
Diffstat (limited to 'include/user/ctrl.h')
-rw-r--r-- | include/user/ctrl.h | 16 |
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 |