appHasFocus property

void appHasFocus=(bool value)

Controls whether the gamepad is active.

This function is meant to be called when an app gains or loses focus. When set to false, vibration effects will be stopped and calls to updateState will be returned neutral values.

Implementation

set appHasFocus(bool value) => XInputEnable(value ? TRUE : FALSE);