Posts

Showing posts with the label Xbox

[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...

[HOW TO] Use Xbox 360 controller as mouse in Xubuntu

With the help of xboxdrv , the Userspace Xbox USB Gamepad Driver for Linux, the Xbox 360 controller can be used in Xubuntu as a mouse. Install Open a terminal window and run: sudo apt-get install xboxdrv -y Usage Open a terminal window and run: sudo rmmod xpad sudo xboxdrv --mouse Running the last command will make the Xbox 360 Controller produce the following key events: LS (move): move mouse cursor LS (click): backspace LS (move): mouse scroll RS (click): space D-Pad: up/down/left/right Reset: Alt+Left Start: Alt+Right LB: PageUp LT: VolumeDown RB: PageDown RT: VolumeUp Y: enter A: mouse left-click B: mouse right-click X: mouse middle-click Note: This also works for the original Xbox controller, however I didn't have the chance to test and register the event mapping. References Userspace Xbox/Xbox360 USB Gamepad Driver for Linux