Xwii works by reading profiles which tells the application what buttons are mapped to the Wii device buttons.
When you start XWii, the command takes this form: xwii path/to/config/file.xwii XWii config files are made up of BBCode style "tags" like this: