From: Frank Praznik <frank.praznik@gmail.com>
To: simon@mungewell.org, Frank Praznik <frank.praznik@oh.rr.com>
Cc: linux-input@vger.kernel.org, jkosina@suse.cz
Subject: Re: [PATCH v2 2/2] HID: sony: Add output events for the multi-touch pad on the Dualshock 4.
Date: Mon, 27 Jan 2014 16:02:31 -0500 [thread overview]
Message-ID: <52E6C967.9060704@gmail.com> (raw)
In-Reply-To: <d3172725c00c3ddcc924d036820b7f5c.squirrel@mungewell.org>
On 1/27/2014 15:40, simon@mungewell.org wrote:
>> + 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
>
No, the HID layer tracks the current state and only sends events when
something changes so there is no need to shadow it again. If you watch
the output in evtest, events are only sent when something changes. All
this does is manually parse the touch data for the HID layer.
next prev parent reply other threads:[~2014-01-27 21:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-27 15:17 [PATCH v2 1/2] HID: sony: Add battery status reporting for the Sixaxis and Dualshock 4 controllers Frank Praznik
2014-01-27 15:17 ` [PATCH v2 2/2] HID: sony: Add output events for the multi-touch pad on the Dualshock 4 Frank Praznik
2014-01-27 17:47 ` simon
2014-01-27 21:28 ` Frank Praznik
2014-01-27 20:40 ` simon
2014-01-27 21:02 ` Frank Praznik [this message]
2014-01-28 19:39 ` [PATCH v2 1/2] HID: sony: Add battery status reporting for the Sixaxis and Dualshock 4 controllers Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E6C967.9060704@gmail.com \
--to=frank.praznik@gmail.com \
--cc=frank.praznik@oh.rr.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=simon@mungewell.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).