Я думаю, что можно настроить Option "ButtonMapping"
в Вашей мыши Section "InputDevice"
из xorg.conf
. Там необходимо установить физическую кнопку (кнопки) на логическую кнопку 2
.
Например:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 4 5 2"
EndSection
Чтобы заставить левые и правые кнопки действовать как средняя кнопка при прижимании друг к другу необходимо активировать эмуляцию с 3 кнопками. В более старых релизах Xorg, наборе Option "Emulate3Buttons" "yes"
в соответствующем InputDevice
раздел xorg.conf.
В Xorg 1.4 до 1,7, добавьте файл ПИИ конфигурации HAL, такой как:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<!--
Default X.org input configuration is defined in:
/etc/hal/fdi/policy/30user/10-x11-input.fdi
Settings here modify or override the default configuration.
See comment in the file above for more information.
To see the currently active hal X.org input configuration
run lshal or hal-device(1m) and search for "input.x11*" keys.
Hal and X must be restarted for changes here to take any effect
-->
<match key="info.capabilities" contains="input.mouse">
<merge key="input.x11_options.Emulate3Buttons" type="string">on</merge>
</match>
</device>
</deviceinfo>
В Xorg 1.8 и позже, добавьте файл в xorg.conf.d каталоге, таком как:
Section "InputClass"
Identifier "middle button emulation class"
MatchIsPointer "on"
Option "Emulate3Buttons" "on"
EndSection