Skip to content

MTY_AppRumbleController

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Set the rumble state on a controller.

Rumble on controllers is generally stateful and must be set to 0 to stop rumbling. Some controllers will automatically stop rumbling if it has not been refreshed after a short period of time.

void MTY_AppRumbleController(
    MTY_App * ctx,
    uint32_t  id,
    uint16_t  low,
    uint16_t  high
);

Parameters

ctx (MTY_App *)

The MTY_App.

id (uint32_t)

A controller id found via MTY_EVENT_CONTROLLER or MTY_EVENT_CONNECT.

low (uint16_t)

Strength of low frequency motor between 0 and UINT16_MAX.

high (uint16_t)

Strength of the high frequency motor between 0 and UINT16_MAX.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: App

Clone this wiki locally