How to program a Nintendo Switch Pro Controller in Lakka?

Hi, I have a Nintendo Switch Pro Controller and I would like to know how can I configure in RA/Lakka. Could it be wired or could it be wireless?

I tried this http://www.lakka.tv/doc/Input-settings/ but I can’t bind the buttons, because the controller moves in the options.