Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > afe76a9ef95a1b7e6257bc39819e7f31 > files > 12

x11-server-1.10.1-1.2.mga1.src.rpm

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <!--
      Mouse quirks

      This file should contain fixes for all those weird mice.
      To identify the mice, we should use the id properties of the parent hal-device. This command could be used:
        hal-device $(hal-device $(hal-find-by-capability \-\-capability input.mouse) | grep input.originating_device | cut -d"'" -f2) | grep _id

      To check the "current mapping" one should use "xinput \-\-list" to find the mouse
      and then "xinput get-button-map (mouse id)" to get the mapping.

      The correct mapping should be:
      1: left click
      2: middle click
      3: right click
      4: wheel up
      5: wheel down
      6: wheel left
      7: wheel right
      8: backward
      9: forward
      10: task-switching button in mx700
      11: related to wheel up in mx700
      12: related to wheel down in mx700
    -->
    <match key="info.capabilities" contains="input.mouse">
      <match key="@input.originating_device:usb.vendor_id" int="0x045e">
        <match key="@input.originating_device:usb.product_id" int="0x00d1">
	  <!--
	    This mouse has no "forward" button, just a "backward" one, but it's mapped as 9, not 8.
	    Bug #: no bug, reported by cguthrie at mandriva.org
	    info.product: "Microsoft Microsoft Optical Mouse with Tilt Wheel"
	  -->
          <merge key="input.x11_options.ButtonMapping" type="string">1 2 3 4 5 6 7 9 8</merge>
        </match>
      </match>

      <!--
        Insert new quirk here. Describe the oddities and document the rules to fix them.
	Insert the bug # or the email of the person who reported the problem.
	Don't forget to add the "info.product" too.
      -->

    </match>
  </device>
</deviceinfo>