6.4 Button Mapping with xmodmap for Devices in Core Mode
xmodmap will only modify the Core Pointer. As there is only one Core pointer at
a time, it makes no difference between the physical devices which may become
the Core Pointer. You may set this device manually with xsetpointer device.
For the moment, let us forget the whole XInput stuff and think of a left-hander
who just wants to swap the left and right mouse buttons. You would execute
xmodmap -pp to look what the current assignment is. You should get the
following table back:
Physical Button
Button Code
1 1 # ( Left Button )
2 2 # ( Right Button )
3 3 # ( Middle Button )
To swap the buttons, you do a xmodmap -e "pointer = 2 1 3" , and to get back,
xmodmap -e "pointer = default" . This should work with every device with at
least two buttons. Note that the term "pointer = x x x" has to be quoted to
prevent it from being changed by the shell.
On 03/14/2010 02:39 PM, Frank Murphy wrote:
> On 14/03/10 18:36, Marty Jack wrote:
>> Can you not do what I suggested and run xinput in your autostart? That is
>> easy and you do not have to change any code.
>
> Sorry,
> both
> man xinput
> xinput --help returned no hits.
>
> Googling for various combination,
> didn't return any simple switches.
>
> --snipped--
>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list