-
Notifications
You must be signed in to change notification settings - Fork 53
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
);
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
.