Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp33843imm; Thu, 30 Aug 2018 14:58:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdahlE8IElU8QoPtCv4o86ypa6cfMSzGZYUlEbseszuh6QOi4r5EpVLhaZ5Y7oBuKGgc5iUI X-Received: by 2002:a63:c941:: with SMTP id y1-v6mr11298984pgg.331.1535666334662; Thu, 30 Aug 2018 14:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535666334; cv=none; d=google.com; s=arc-20160816; b=PriXvS8TS7PFqUHd7Szy2aPAF3XUg53bVKq6OpQRsMdlFr5JfDGWGTUaEaASK4ByI+ TkOnEe4QtyxpW87HuPf8ex29QDd6Fhru762gbw/SjqM/rpxC2UjSLdPqZlknFPIshxha Qsw/lE4+WQ1uTwOYsEaf2T61V1+cMJ/2aYsm6EQOMkArj7yDVYjmRkRNeIpW7v8zf/oJ OIOaKYUubdEpfS62YXNNs6jvxHfVuA4Iit5oc05b5DiT16UmL9KJchZXWx9E45x5nwss MuLSGKS2t+RYBHSusPZkTcweqpbWXCNhtzj2Zp85wX8U1GUp+4INyyhbbcigAEfj67vW +czQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=bNkXjyd/TJwjJQq5sEuLkOphZyxbub4Zs7WyVtO+UM0=; b=hB1eP+RFBUYmeo5xAlgSqOrtbKJW5i54FZ9SI5SGnlIx4yD102+k93nil5xDeucX0S YxZ38zYxAiaOsR2GkUdAzXw8DxweLHsakHZkr+L2LUbkAWwFfkKabfTUBv7G9fh07GNa T0WQkXrVsEijso+hNKdU7BsPFFCzxGSNMqeljW0UGalPxpGitr/LwqCR5gESkYOTsQjB txbh8mIiUK4EMaSJTqoXmB9Ep7AOHG/RmTYMKCMNq9VjVwxwvhsYGOemTWkrNY6HtxfU lQbWIVDktAOpYknmWKrFiUKkkzb6g2gmnbKHAALbtPTWQmyMSR9H2s9GaFckg4cfOFdM KFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OO2p7d+C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5-v6si7238058pgw.343.2018.08.30.14.58.40; Thu, 30 Aug 2018 14:58:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OO2p7d+C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727997AbeHaCAp (ORCPT + 99 others); Thu, 30 Aug 2018 22:00:45 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46815 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727980AbeHaCAo (ORCPT ); Thu, 30 Aug 2018 22:00:44 -0400 Received: by mail-pf1-f196.google.com with SMTP id u24-v6so4473247pfn.13 for ; Thu, 30 Aug 2018 14:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bNkXjyd/TJwjJQq5sEuLkOphZyxbub4Zs7WyVtO+UM0=; b=OO2p7d+CZgD4xu58qnmC/I+WtDMVinCv2sRX+QxYmOggLJ6HEFrSO5eq3Xwd8yOO3I 2YD0a33Qp016oqh0a0lciOhz2xY9q7NxcgvCrMbbaVJJineVysS91WrHY84ZLuoZyNMd okn84jvHPZ4wzARZvMvhFwOwkyIgsDQHf/sKs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bNkXjyd/TJwjJQq5sEuLkOphZyxbub4Zs7WyVtO+UM0=; b=jP2JSv0kMj+KlwuSIevfxD7quJAiR/NA4pAiWxF36eRnnLRl1vwOnF9Vw2Q5M8LExj fMUS6HZQeH+Py4PugEZnaPoCuGNccEqIe7Tg4ozRbH7ZpFQaK81D0E7wBKVcP2NQMWL2 VvMBtFIO3NMzAev6slH2aloLfhRozwaKro+71DzDufr0SScaxCrgVtdPtCJpBOfKO4rX y/dP9zwa2mw7TnYIywmu1Spm41oo1zEf8Yl2IgZfxe07b+72tfH5mWoFmLqoa9Up7VvH F9ZwF7DJifJoso8SfjNoYGsBaDWpqXbXAHNKURY45NxVuu8X2EePpGoM1PkLU7Ucd58b +DLQ== X-Gm-Message-State: APzg51D1zjzX0VZLK9oKVvKfWNzmE1AE1Ymq6rkF90aQyxp2oTO9dfcM TSHe1H5wZXOdcBOkTYfBiVskQQ== X-Received: by 2002:a63:f501:: with SMTP id w1-v6mr6830908pgh.446.1535666188590; Thu, 30 Aug 2018 14:56:28 -0700 (PDT) Received: from kolhar.mtv.corp.google.com ([2620:15c:202:201:356a:9de2:526a:5bc]) by smtp.gmail.com with ESMTPSA id h132-v6sm13516828pfc.100.2018.08.30.14.56.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 14:56:28 -0700 (PDT) From: Harry Cutts To: linux-input , LKML Cc: Jiri Kosina , Dmitry Torokhov , Benjamin Tissoires , Harry Cutts , linux-doc@vger.kernel.org, Jonathan Corbet Subject: [PATCH v2 1/5] Add the `REL_WHEEL_HI_RES` event code Date: Thu, 30 Aug 2018 14:56:18 -0700 Message-Id: <20180830215622.47550-2-hcutts@chromium.org> X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-goog In-Reply-To: <20180830215622.47550-1-hcutts@chromium.org> References: <20180830215622.47550-1-hcutts@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This event code represents scroll reports from high-resolution wheels, and will be used by future patches in this series. See the linux-input "Reporting high-resolution scroll events" thread [0] for more details. [0]: https://www.spinics.net/lists/linux-input/msg57380.html Signed-off-by: Harry Cutts --- Changes in v2: None Documentation/input/event-codes.rst | 11 ++++++++++- include/uapi/linux/input-event-codes.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/input/event-codes.rst b/Documentation/input/event-codes.rst index a8c0873beb95..cef220c176a4 100644 --- a/Documentation/input/event-codes.rst +++ b/Documentation/input/event-codes.rst @@ -190,7 +190,16 @@ A few EV_REL codes have special meanings: * REL_WHEEL, REL_HWHEEL: - These codes are used for vertical and horizontal scroll wheels, - respectively. + respectively. The value is the number of "notches" moved on the wheel, the + physical size of which varies by device. For high-resolution wheels (which + report multiple events for each notch of movement, or do not have notches) + this may be an approximation based on the high-resolution scroll events. + +* REL_WHEEL_HI_RES: + + - If a vertical scroll wheel supports high-resolution scrolling, this code + will be emitted in addition to REL_WHEEL. The value is the (approximate) + distance travelled by the user's finger, in microns. EV_ABS ------ diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 53fbae27b280..dad8d3890a3a 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -708,6 +708,7 @@ #define REL_DIAL 0x07 #define REL_WHEEL 0x08 #define REL_MISC 0x09 +#define REL_WHEEL_HI_RES 0x0a #define REL_MAX 0x0f #define REL_CNT (REL_MAX+1) -- 2.19.0.rc0.228.g281dcd1b4d0-goog