[HOW TO] Remap Xbox 360 controller buttons in Xubuntu
On a previous article I wrote about using the Xbox 360 controller as a mouse. The --mouse option is actually a shortcut for a custom button configuration. You can map any button on the controller to any key/combination. In this article I'll layout the basics. Further information can be obtained in the references. There are two ways of providing a custom mapping: Command line options: use ui-buttonmap to map a button and use ui-axismap to map a axis. The syntax consists of assigning a button name to a symbol. Example: ui-buttonmap x=XK_Tab,a=XK_Control_L+XK_a ui-axismap y2=XK_plus:XK_minus . This will map "X" as "Tab", "A" as "Super+a" and the right stick up is "+" and right stick down is "-". Configuration file: use config to provide the path for a configuration file. The config file has a ini format. Use the sections ui-buttonmap and ui-axismap for configuring the mappings. You can...