|
Public Member Functions | |
| proto external void | StartRumble (int userIdx, float fLeftMotorSpeed, float fRightMotorSpeed, float fLeftTriggerSpeed, float fRightTriggerSpeed, int iDurationMs=-1, int iFadeInMs=0, int iFadeOutMs=0) |
| Start to rumble a gamepad for specific user (if available). | |
| proto external void | StopRumble (int userIdx=-1) |
| use userIdx = -1 to stop rumble for all controllers | |
| proto external void | SetTriggerEffect (int userIdx, GamepadTrigger eTriggerIndex, GamepadTriggerEffect eEffectType, int frequency, notnull array< int > curve) |
| Set gamepad trigger effect Set gamepad trigger effect. | |
| proto external void | SetLightColor (int userIdx, notnull Color color) |
| Set gamepad light color. | |
Set gamepad light color.
| proto external void GamepadDeviceHandler.SetTriggerEffect | ( | int | userIdx, |
| GamepadTrigger | eTriggerIndex, | ||
| GamepadTriggerEffect | eEffectType, | ||
| int | frequency, | ||
| notnull array< int > | curve ) |
Set gamepad trigger effect Set gamepad trigger effect.
Functionality can vary across platforms.
| userIdx | user index |
| eTriggerIndex | can be left or right trigger |
| eEffectType | can be rumble or force-feedback |
| frequency | used just with rumble effect |
| curve | parameter curve, array of 10 integer values. Range is (0, 8) where 0 is minimum, 8 maximum force of effect. |
| proto external void GamepadDeviceHandler.StartRumble | ( | int | userIdx, |
| float | fLeftMotorSpeed, | ||
| float | fRightMotorSpeed, | ||
| float | fLeftTriggerSpeed, | ||
| float | fRightTriggerSpeed, | ||
| int | iDurationMs = -1, | ||
| int | iFadeInMs = 0, | ||
| int | iFadeOutMs = 0 ) |
Start to rumble a gamepad for specific user (if available).
Intensity for low/high frequency is in range from 0 to 1
| proto external void GamepadDeviceHandler.StopRumble | ( | int | userIdx = -1 | ) |
use userIdx = -1 to stop rumble for all controllers