Method

WPEPlatformGamepadrumble

Declaration [src]

gboolean
wpe_gamepad_rumble (
  WPEGamepad* gamepad,
  gdouble strong_magnitude,
  gdouble weak_magnitude,
  guint duration_ms
)

Description [src]

Attempts to make a WPEGamepad rumble for duration_ms milliseconds. Returns TRUE if the rumble effect was played, FALSE otherwise.

Parameters

strong_magnitude

Type: gdouble

The magnitude for the heavy motor.

weak_magnitude

Type: gdouble

The magnitude for the light motor.

duration_ms

Type: guint

The rumble effect play time, in milliseconds.

Return value

Type: gboolean

No description available.