Thread (14 messages) 14 messages, 5 authors, 2011-11-16

Re: Linux USB HID should ignore values outside Logical Minimum/Maximum range

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2011-10-24 20:35:54
Also in: lkml

On Mon, Oct 24, 2011 at 02:39:31PM -0200, Denilson Figueiredo de Sá wrote:
On Mon, Oct 24, 2011 at 14:24, Chris Friesen [off-list ref] wrote:
quoted
On 10/22/2011 05:42 AM, Denilson Figueiredo de Sá wrote:
quoted
It may even happen to send an out-of-range value for one axis, but a
valid value for another axis. The code should be prepared for that
(ignore one, but keep the other).
In this case what should be used for the "invalid" axis value?  The previous
value?
If that's an absolute pointing device, can we supply only one axis? I
mean, can we do this: "move the pointer to this X position, but leave
the Y position where it currently is". (note that the pointer might
Yes, input protocol is stateful and it will actually suppress duplicate
events itself. I.e. if device moves from (10, 20) to (40, 20) usespace
will see:

EV_ABS/ABS_X/10
EV_ABS/ABS_Y/20
EV_SYN/SYN_REPORT
EV_ABS/ABS_X/40
EV_SYN/SYN_REPORT

even if driver emits 2nd EV_ABS/ABS_Y/20 event.
have moved since last input from this device, due to other devices
also being present)
The other devices have no effect on this device state.

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help