Input Wizard bug fix when changing to left-handed mouse

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Input Wizard bug fix when changing to left-handed mouse

bigpup
In Mouse/Keyboard Wizard->Choose type of mouse

If you change the mouse to left-handed mouse.
There is no way to change it back to right-handed mouse.

The left-handed mouse option does not stay checked, so unchecking it is not an option.

With this bug fix to Input Wizard  the left-handed mouse option stays checked.
Now, to change back to right-handed mouse, all you do is uncheck left-handed mouse option.

The bug fix is discussed here:
http://www.murga-linux.com/puppy/viewtopic.php?t=96871

The code fix was found by MochiMoppel.
quote:
MochiMoppel

Edit file /usr/sbin/input-wizard
Search for keyword LEFT_H_MOUSE
Then change line

[code:
LEFT_H_MOUSE=` xmodmap -pp | grep -E " *[0-9] *[0-9]" | sed -e 's/ *\([0-9]*\) *\([0-9]*\)/\2/' | head -n 1`

to

code:
LEFT_H_MOUSE=` xmodmap -pp | grep -E "[ 0-9][^a-z]$" | sed -e 's/ *\([0-9]*\) *\([0-9]*\)/\2/' | head -n 1`

This code also works:

Code:
LEFT_H_MOUSE=`xmodmap -pp | grep -om1 "[0-9]$"`  
Loading...