Skip to content

InputAPI reference

Interface IGamepadRumble

Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.dll
Guide: Input

Gamepad vibration, a capability of input backends whose pads can rumble.

C#
public interface IGamepadRumble

Methods

Rumble(DeviceId, float, float, double)

Rumbles pad’s low-frequency (left, heavy) and high-frequency (right, light) motors at 0..1 for seconds; 0, 0 stops it. Returns false when the pad cannot rumble.

C#
bool Rumble(DeviceId pad, float low, float high, double seconds)

Parameters

pad DeviceId

low float

high float

seconds double

Returns

bool