<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [PATCH] doc: Fix mistake in Matrix example to relect only X along Y axis"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101474">101474</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PATCH] doc: Fix mistake in Matrix example to relect only X along Y axis
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rzr@users.sf.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Subject: [PATCH] doc: Fix mistake in Matrix example to relect only X along Y
 axis

On some devices, X coordidate is not working well, as if it was swapped,
(click on right, appear on left and vice versa).

To sort this issue, coordidates should be reflected on Y axis:
- new X prosition is changed (width is substracted by X position)
- Y is unchanged (the mistake was here, it was set to X)

In landscape (or portrait) mode:

                [ x ]
                [ y ]
                [ 1 ]
              *
  [ -1 0 1  ]   [ x' ] = -x + 0*y + 1*width
  [  0 1 0  ]   [ y' ] = 0*x + 1*y + 0*height
  [  0 0 1  ]   [ 1  ]

This was verified using this touch screen.

  E: ID_VENDOR=eGalax_Inc.
  E: ID_VENDOR_ENC=eGalax\x20Inc.
  E: ID_VENDOR_ID=0eef

Origin:
<a href="https://github.com/TizenTeam/libinput/tree/sandbox/pcoval/on/master/review">https://github.com/TizenTeam/libinput/tree/sandbox/pcoval/on/master/review</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>