-   Linux - Software (
-   -   How to toggle xorg.conf joystick/mouse? (

tauro_kpo 10-31-2016 07:07 PM

How to toggle xorg.conf joystick/mouse?
I'm using a specific configuration in /etc/X11/xorg.conf.d/50-joystick.conf to use my joypad to control the mouse, but sometimes I want to use it as a regular joypad, to play games.

Is there any way to switch between mouse and regular joypad on the fly? To toggle between them?

At the moment I'm forced to delete 50-joystick.conf and restart xorg, and when I finish playing, put the file back and restart xorg again.


Emerson 10-31-2016 10:05 PM

I think xinput is the tool for this.

tauro_kpo 11-01-2016 01:17 AM

Thank you very much, that was it.

For the record now my method to disable the joypad as mouse is:

xinput set-prop 'Wireless Controller' 'Device Enabled' 0


xinput set-prop 'Wireless Controller' 'Device Enabled' 1

To enable it back again.

All times are GMT -5. The time now is 08:48 AM.