PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

HapticService

Show deprecated

HapticService

Show deprecated

The Xbox One controller and some other USB gamepad controllers have motors built in to provide haptic feedback. Adding rumbles and vibrations can greatly enhance a game’s experience and provide subtle feedback that is hard to convey through visuals or audio.


Properties

Functions

Tuple

GetMotor ( UserInputType inputType , VibrationMotor vibrationMotor )

Returns the current vibration value set to the specified UserInputType and VibrationMotor.

This will not return anything if SetMotor has not been called prior.

bool

IsMotorSupported ( UserInputType inputType , VibrationMotor vibrationMotor )

Returns true if the specified motor is available to be used with the specified Enum/UserInputType.

bool

IsVibrationSupported ( UserInputType inputType )

Returns true if the specified Enum/UserInputType supports haptic feedback.

void

SetMotor ( UserInputType inputType , VibrationMotor vibrationMotor , Tuple vibrationValues )

Sets the vibration intensity of the specified UserInputType and VibrationMotor.

Events