From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Fritz Subject: Re: Linux USB HID should ignore values outside Logical Minimum/Maximum range Date: Mon, 24 Oct 2011 19:09:43 +0200 Message-ID: <1319476183.3210.12.camel@lovely> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:37051 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755399Ab1JXRCa (ORCPT ); Mon, 24 Oct 2011 13:02:30 -0400 In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Denilson Figueiredo de =?ISO-8859-1?Q?S=E1?= Cc: linux-kernel@vger.kernel.org, Jiri Kosina , linux-input@vger.kernel.org, linux-usb@vger.kernel.org Hi Denilson, please see my comment below. On Sat, 2011-10-22 at 09:42 -0200, Denilson Figueiredo de S=C3=A1 wrote= : > Short description: >=20 > An absolute pointing device using USB HID defines a LOGICAL_MINIMUM a= nd > a LOGICAL_MAXIMUM for X, Y axes, and then sends a HID report containi= ng > values outside that range. >=20 > Linux kernel should ignore values outside that range, as they are not > meaningful. To answer with a quote from the comment above input.h:"struct input_absinfo": * * Note that input core does not clamp reported values to the * [minimum, maximum] limits, such task is left to userspace. * to do so, use this from input.h: #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) /= * get abs value/limits */ #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) /= * set abs value/limits */ > Thanks, -- chf -- To unsubscribe from this list: send the line "unsubscribe linux-input" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html