> +     for (n = 0; n < 2; n++) {
> +             __u16 x, y;
> +
> +             x = rd[offset+1] | ((rd[offset+2] & 0xF) << 8);
> +             y = ((rd[offset+2] & 0xF0) >> 4) | (rd[offset+3] << 4);
> +
> +             input_mt_slot(input_dev, n);
> +             input_mt_report_slot_state(input_dev, MT_TOOL_FINGER,
> +                                     !(rd[offset] >> 7));
> +             input_report_abs(input_dev, ABS_MT_POSITION_X, x);
> +             input_report_abs(input_dev, ABS_MT_POSITION_Y, y);
> +
> +             offset += 4;
> +     }

Sorry I have another point/question....

Doesn't this 'spam' the Multitouch interface every incoming report,
regardless on whether anything has actually change? ie. Should HID-Sony
track the values, and only send when it detects a change...

Simon

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to