xinput --list-props You can then use xinput to set button mappings, axis mappings, and other settings.