xinput/evdev switch events+state

2010-11-22 Thread Rafi Rubin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Some tablets (such as dell and hp) report hinge rotation as EV_SW events.  Does
it make sense to handle events and state in the X evdev driver and xinput?

Rafi
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJM6rwdAAoJEPILXytRLnK2GwQP/0kNCqWgZJWTGv9Y+Xfhv2Nf
iba/QLjHJ4uzam5VFsEKJ7GolRaPVyF02RiaVgow8zgOxqmNKJMGmBvbi1ZEYEMy
FOcQaUYd2b6k7N2eAixzxsLHPqvCjwwY5oDJIq26ypTehFJuBZP6glDQffkcmsXh
LZNg+FEWMTLm9mfY+hlkRPgPRkZl6dCdsWlKDKoUpkAQ2xpf9g1u6CgJ1Z112Afd
CL7ebuepzTRXGvKFPwN+sq5nZrGnpSA9grWvkTSKILxvveEU9YIojjzTKxILBoDi
oDobmnnrBHyxnqAkxClssFOP6p76d/91o6iAhPMUxV8tdwuA5en8oq7HqP2c9r7m
vtit1aGqyqWHrBOBriQG/er7xDby5Wqtkq8Sf2ZlrD78LMmWUHU8man+jxdws9CZ
u5gkTwi9ZQ+7kJtFR6CczFxB3Nd/POgxsQYeUIWE2xCkM3jtlcZFDbYLCPWwR5wT
WNVJ55ygRD412uXLOTdsVMmIVJAk/zUIatXLUrMKk2sRp1JyGE6XTM6NebZDIQWY
cDwB3FuiMQ6WHwjoeMlZBwrE1+HHenub7rLdf3TrgyxSKl4ycrdnjuidzoSrDp41
wuwMD5tyJxCVGqR23x61svaIsVjYu2CBiNgWsnfaPImK4hS7gdqKdMc9UbuRtnKZ
3fmfFXcm1a/JkbqtrCkJ
=woaB
-END PGP SIGNATURE-
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


Re: xinput/evdev switch events+state

2010-11-22 Thread Peter Hutterer
On Mon, Nov 22, 2010 at 01:53:22PM -0500, Rafi Rubin wrote:
 Some tablets (such as dell and hp) report hinge rotation as EV_SW events.  
 Does
 it make sense to handle events and state in the X evdev driver and xinput?

yes, but I don't think button events are the right method for this. in the
XI2 development cycle I played around with a SwitchClass for this purpose
but dropped it for XI 2.0 for lack of time.

IMO a protocol addition for this class would be the best solution.
 
Cheers,
  Peter

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel