Feel  5.1
The best way to improve your game's feel and make it extra juicy
Lofelt.NiceVibrations.GamepadRumble Struct Reference

Contains a vibration pattern to make a gamepad rumble. More...

Public Member Functions

bool IsValid ()
 Checks if the GamepadRumble is valid and also not empty More...
 

Public Attributes

int[] durationsMs
 The duration, in milliseconds, that the motors will be turned on at the speed set in lowFrequencyMotorSpeeds and highFrequencyMotorSpeeds at the same array index More...
 
int totalDurationMs
 The total duration of the GamepadRumble, in milliseconds More...
 
float[] lowFrequencyMotorSpeeds
 The motor speeds of the low frequency motor More...
 
float[] highFrequencyMotorSpeeds
 The motor speeds of the high frequency motor More...
 

Detailed Description

Contains a vibration pattern to make a gamepad rumble.

GamepadRumble contains the information on when to set what motor speeds on a gamepad to make it rumble with a specific pattern.

GamepadRumble has three arrays of the same length representing the rumble pattern. The entries for each array index describe for how long to turn on the gamepad's vibration motors, at what speed.

Member Function Documentation

◆ IsValid()

bool Lofelt.NiceVibrations.GamepadRumble.IsValid ( )

Checks if the GamepadRumble is valid and also not empty

Returns
Whether the GamepadRumble is valid

Member Data Documentation

◆ durationsMs

int [] Lofelt.NiceVibrations.GamepadRumble.durationsMs

The duration, in milliseconds, that the motors will be turned on at the speed set in lowFrequencyMotorSpeeds and highFrequencyMotorSpeeds at the same array index

◆ highFrequencyMotorSpeeds

float [] Lofelt.NiceVibrations.GamepadRumble.highFrequencyMotorSpeeds

The motor speeds of the high frequency motor

◆ lowFrequencyMotorSpeeds

float [] Lofelt.NiceVibrations.GamepadRumble.lowFrequencyMotorSpeeds

The motor speeds of the low frequency motor

◆ totalDurationMs

int Lofelt.NiceVibrations.GamepadRumble.totalDurationMs

The total duration of the GamepadRumble, in milliseconds


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