xserver/hw/kdrive/src
Peter Hutterer 675f4a8525 Abstract valuator masks through a set of APIs.
This commit introduces an abstraction API for handling masked valuators. The
intent is that drivers just allocate a mask, set the data and pass the mask
to the server. The actual storage type of the mask is hidden from the
drivers.

The new calls for drivers are:
    valuator_mask_new()     /* to allocate a valuator mask */
    valuator_mask_zero()    /* to reset a mask to zero */
    valuator_mask_set()     /* to set a valuator value */

The new interface to the server is
    xf86PostMotionEventM()
    xf86PostButtonEventM()
    xf86PostKeyboardEventM()
    xf86PostProximityEventM()

all taking a mask instead of the valuator array.

The ValuatorMask is currently defined for MAX_VALUATORS fixed size due to
memory allocation restrictions in SIGIO handlers.

For easier review, a lot of the code still uses separate valuator arrays.
This will be fixed in a later patch.

This patch was initially written by Chase Douglas.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2010-10-22 11:02:48 +10:00
..
Makefile.am kdrive: Remove unused kmap.c 2010-01-06 20:27:45 +06:00
fourcc.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
kcmap.c Quit using clientErrorValue in dix/colormap.c. 2010-05-13 17:14:07 -07:00
kdrive.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
kdrive.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
kinfo.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
kinput.c Abstract valuator masks through a set of APIs. 2010-10-22 11:02:48 +10:00
kmode.c kdrive: Remove unused overlay fb support 2010-01-06 19:47:53 +06:00
kshadow.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
kxv.c Replace malloc/strlen/strcpy with strdup. 2010-08-27 19:05:48 -04:00
kxv.h Remove trailing whitespace 2010-01-01 23:22:49 -08:00