<div dir="ltr">Hi,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 11, 2015 at 8:04 AM, Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>[...]</span><br><div><div>
> +static struct input_absinfo absinfo[] = {<br>
> + { ABS_X, 0, 1500, 0, 0, 0 },<br>
> + { ABS_Y, 0, 2500, 0, 0, 0 },<br>
<br>
</div></div>out of interest: is his from a real touchscreen? no resolution?<br></blockquote><div><br></div><div>Yes and not an exception. I havent seen a non-zero resolution yet.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>[...]<br>
> enum litest_device_feature {<br>
> @@ -156,6 +157,9 @@ enum litest_device_feature {<br>
> LITEST_ABSOLUTE = 1 << 13,<br>
> LITEST_PROTOCOL_A = 1 << 14,<br>
> LITEST_HOVER = 1 << 15,<br>
> + LITEST_PRESSURE = 1 << 16,<br>
> + LITEST_ELLIPSE_ORIENTATION = 1 << 17,<br>
> + LITEST_ELLIPSE_SIZE = 1 << 18,<br>
<br>
</div></div>do we need two different flags for this? how many devices have major/minor<br>
but not orientation?<br></blockquote><div><br></div><div>Hm to what I have access to all have major + pressure and a few add orientation and minor to that. And one exception that comes wih orientation but a minor value. Not sure what to make out of that one.. The orientation value is pretty acurate.. but without more information about the shape..<br><br>So if we only have major we assume a circular shape and there is no orientation. What about circle vs ellipse?<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><br>
> };<br>
><br>
> struct litest_device {<br>
> @@ -302,6 +306,18 @@ void litest_touch_move_two_touches(struct litest_device *d,<br>
> double x1, double y1,<br>
> double dx, double dy,<br>
> int steps, int sleep_ms);<br>
> +void litest_touch_pressure(struct litest_device *d,<br>
> + unsigned int slot,<br>
> + double pressure);<br>
> +void litest_touch_orientation(struct litest_device *d,<br>
> + unsigned int slot,<br>
> + double orientation);<br>
> +void litest_touch_major(struct litest_device *d,<br>
> + unsigned int slot,<br>
> + double touch_major);<br>
> +void litest_touch_minor(struct litest_device *d,<br>
> + unsigned int slot,<br>
> + double touch_minor);<br>
> void litest_hover_start(struct litest_device *d,<br>
> unsigned int slot,<br>
> double x,<br>
<br>
</span>I'm wondering if this is the best approach here, it would quickly become<br>
unwieldly. Can we use the same approach as in the tablet-support branch,<br>
where we supply an array with axes to override?<br></blockquote><div><br></div><div>Ok. <br></div></div></div></div></div>