mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Henrik Rydberg <rydberg@euromail.se>
To: Henrik Rydberg <rydberg@euromail.se>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Jiri Kosina <jkosina@suse.cz>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] input: mt: Move tracking and pointer emulation to input-mt
Date: Tue, 30 Nov 2010 22:50:15 +0100	[thread overview]
Message-ID: <4CF57197.7070000@euromail.se> (raw)
In-Reply-To: <1291014802-17061-4-git-send-email-rydberg@euromail.se>

> @@ -132,12 +128,10 @@ static void parse_touch(struct w8001 *w8001)

>  			input_report_abs(dev, ABS_MT_POSITION_X, x);
>  			input_report_abs(dev, ABS_MT_POSITION_Y, y);
>  			input_report_abs(dev, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER);
> -			if (w8001->trkid[i] < 0)
> -				w8001->trkid[i] = trkid++ & MAX_TRACKING_ID;
> +			input_report_slot_state(dev, true);


			input_mt_report_slot_state(dev, true);

>  		} else {
> -			w8001->trkid[i] = -1;
> +			input_report_slot_state(dev, false);


			input_mt_report_slot_state(dev, false);

>  		}
> -		input_report_abs(dev, ABS_MT_TRACKING_ID, w8001->trkid[i]);
>  	}
>  
>  	input_sync(dev);


Henrik


  reply	other threads:[~2010-11-30 21:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29  7:13 [PATCH 0/4] input: mt: Driver interface simplifications Henrik Rydberg
2010-11-29  7:13 ` [PATCH 1/4] input: mt: Break out slots handling Henrik Rydberg
2010-11-29  7:13 ` [PATCH 2/4] input: mt: Collect slots initialization code Henrik Rydberg
2010-11-29  7:13 ` [PATCH 3/4] input: mt: Move tracking and pointer emulation to input-mt Henrik Rydberg
2010-11-30 21:50   ` Henrik Rydberg [this message]
2010-11-29  7:13 ` [PATCH 4/4] input: mt: Add pressure to pointer emulation code Henrik Rydberg
2010-11-29  9:47   ` Dmitry Torokhov
2010-11-29 11:20     ` Henrik Rydberg
2010-11-30  9:09       ` Dmitry Torokhov

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=4CF57197.7070000@euromail.se \
    --to=rydberg@euromail.se \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome