I don't see any usage of calibration options <span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">MaxX </span><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">MinX </span><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">MaxY </span><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">MinY in </span><div>
<span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); "><a href="http://cgit.freedesktop.org/xorg/driver/xf86-input-elographics/tree/src/xf86Elo.c">http://cgit.freedesktop.org/xorg/driver/xf86-input-elographics/tree/src/xf86Elo.c</a></span></div>
<div>after this commit</div><div><a href="http://cgit.freedesktop.org/xorg/driver/xf86-input-elographics/commit/src/xf86Elo.c?id=447f547fbb7d11ec56ea578292908192175b3828">http://cgit.freedesktop.org/xorg/driver/xf86-input-elographics/commit/src/xf86Elo.c?id=447f547fbb7d11ec56ea578292908192175b3828</a></div>
<div><br></div><div>Also my elographics(GeneralTouch) device are shown as [floating slave] in xinput list. When I xinput reattach it, it acts as not calibrated.</div><div><br></div><div>I think we should add something like</div>
<div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); "><div class="del" style="color: red; ">int width = priv->max_x - priv->min_x;</div>
<div class="del" style="color: red; ">int height = priv->max_y - priv->min_y;</div></span><span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">cur_x = (priv->screen_width * (cur_x - priv->min_x)) / width;</span></div>
<span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); "><div class="del" style="color: red; ">cur_y = (priv->screen_height -</div>
<div class="del" style="color: red; "> (priv->screen_height * (cur_y - priv->min_y)) / height);</div></span><div> </div><div>in <span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">xf86EloReadInput(InputInfoPtr pInfo)</span></div>
<div><br></div><div>or use <span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">xf86ScaleAxis()</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); "><br>
</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">or use correct screen and max/min values in this stuff</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); "><span class="Apple-style-span" style="font-family: sans-serif; white-space: normal; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<code> /* I will map coordinates myself */
InitValuatorAxisStruct(dev, 0,
axis_labels[0],
-1, -1,
9500,
0 /* min_res */,
9500 /* max_res */,
Absolute);
</code></pre></span></span><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<code> InitValuatorAxisStruct(dev, 1,
axis_labels[1],
-1, -1,
10500,
0 /* min_res */,
10500 /* max_res */,
Absolute);</code></pre><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><code><br></code></pre>
<pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><code><br></code></pre><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<code><br></code></pre><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><code><br></code></pre><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<code><br></code></pre><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><code>I'am going to try first way soon.</code></pre>
</span></div>