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. |
I think xinput is the tool for this.
|
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. |