Virtual Method

HsFrontendrumble

Declaration [src]

void
rumble (
  HsFrontend* self,
  guint player,
  double strong_magnitude,
  double weak_magnitude,
  guint16 milliseconds
)

Description [src]

Makes player‘s controller rumble for milliseconds.

The heavy and light motors will rumble at their respectively defined magnitudes, in the [0-1] range, 0 meaning no rumble, 1 meaning very strong rumble.

milliseconds cannot exceed HS_MAX_RUMBLE_DURATION.

Parameters

player

Type: guint

The player to do rumble for.

strong_magnitude

Type: double

The magnitude for the heavy motor.

weak_magnitude

Type: double

The magnitude for the light motor.

milliseconds

Type: guint16

The rumble effect play time in milliseconds.