Gamepad on kodular

So there is a gamepad api for android https://developer.android.com/training/game-controllers/controller-input

How can I detect a controller button press and vibrate the controller?

I tried using a webview with the web controller api but it didn’t work.

Thanks