LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to toggle xorg.conf joystick/mouse? (https://www.linuxquestions.org/questions/linux-software-2/how-to-toggle-xorg-conf-joystick-mouse-4175592614/)

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.

Thanks.

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

And

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

To enable it back again.


All times are GMT -5. The time now is 10:02 PM.