Linux Input/HID development
 help / color / mirror / Atom feed
* min/max and actual values on absolute axes
@ 2009-06-29 23:42 Peter Hutterer
  2009-06-30  4:53 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Hutterer @ 2009-06-29 23:42 UTC (permalink / raw)
  To: linux-input

Hi guys,

A question regarding min/max values on absolute axes of input devices. I
have a few bugreports related to the synaptics driver and the trigger for
the bug are coordinates outside the min/max range.

Example evtest output: http://bugs.freedesktop.org/attachment.cgi?id=27229

 Event type 3 (Absolute)
    Event code 0 (X)
      Value   6044
      Min     1472
      Max     5472
    Event code 1 (Y)
      Value   1261
      Min     1408
      Max     4448


>From Documentation/input/input-programming:
"This setting would be appropriate for a joystick X axis, with the minimum of
0, maximum of 255 (which the joystick *must* be able to reach, no problem if
it sometimes reports more, but it must be able to always reach the min and
max values), [...]"

Do I read this correct that min/max is intended as guideline only and cannot
be relied on for actual coordinate boundaries?

Cheers,
  Peter

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: min/max and actual values on absolute axes
  2009-06-29 23:42 min/max and actual values on absolute axes Peter Hutterer
@ 2009-06-30  4:53 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2009-06-30  4:53 UTC (permalink / raw)
  To: Peter Hutterer; +Cc: linux-input

Hi Peter,

On Tue, Jun 30, 2009 at 09:42:58AM +1000, Peter Hutterer wrote:
> Hi guys,
> 
> A question regarding min/max values on absolute axes of input devices. I
> have a few bugreports related to the synaptics driver and the trigger for
> the bug are coordinates outside the min/max range.
> 
> Example evtest output: http://bugs.freedesktop.org/attachment.cgi?id=27229
> 
>  Event type 3 (Absolute)
>     Event code 0 (X)
>       Value   6044
>       Min     1472
>       Max     5472
>     Event code 1 (Y)
>       Value   1261
>       Min     1408
>       Max     4448
> 
> 
> From Documentation/input/input-programming:
> "This setting would be appropriate for a joystick X axis, with the minimum of
> 0, maximum of 255 (which the joystick *must* be able to reach, no problem if
> it sometimes reports more, but it must be able to always reach the min and
> max values), [...]"
> 
> Do I read this correct that min/max is intended as guideline only and cannot
> be relied on for actual coordinate boundaries?
> 

That is correct. Input core does not perform any "snapping" of the
reported coordinates to the min/max boundaries, these values are
advisory only.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-30  4:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 23:42 min/max and actual values on absolute axes Peter Hutterer
2009-06-30  4:53 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox