Loading...
Searching...
No Matches
GamepadDeviceHandler Interface Reference
Inheritance diagram for GamepadDeviceHandler:
InputDeviceHandler

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.
 

Member Function Documentation

◆ SetLightColor()

proto external void GamepadDeviceHandler.SetLightColor ( int userIdx,
notnull Color color )

Set gamepad light color.

◆ SetTriggerEffect()

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.

Parameters
userIdxuser index
eTriggerIndexcan be left or right trigger
eEffectTypecan be rumble or force-feedback
frequencyused just with rumble effect
curveparameter curve, array of 10 integer values. Range is (0, 8) where 0 is minimum, 8 maximum force of effect.

◆ StartRumble()

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

◆ StopRumble()

proto external void GamepadDeviceHandler.StopRumble ( int userIdx = -1)

use userIdx = -1 to stop rumble for all controllers


The documentation for this interface was generated from the following file: