xserver-multidpi/hw/dmx/input
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
..
atKeynames.h dix: purge leftover manual key down bit setting. 2010-07-07 13:29:46 +10:00
ChkNotMaskEv.c Remove #define NEED_EVENTS and NEED_REPLIES 2008-12-12 11:43:32 +10:00
ChkNotMaskEv.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxarg.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxarg.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxbackend.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
dmxbackend.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxcommon.c Move each screen's x/y origin into ScreenRec. 2010-06-03 14:03:23 -07:00
dmxcommon.h XKB: Make XKB mandatory 2009-01-22 15:06:25 +11:00
dmxconsole.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
dmxconsole.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxdetach.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxdummy.c XKB: Make XKB mandatory 2009-01-22 15:06:25 +11:00
dmxdummy.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxevents.c Abstract valuator masks through a set of APIs. 2010-10-22 11:02:48 +10:00
dmxevents.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxinputinit.c input: Purge Register*Device() functions. 2010-09-01 15:26:47 +10:00
dmxinputinit.h dmx: Fix XSetExtensionErrorHandler calls to agree on constness. 2010-06-03 14:03:22 -07:00
dmxmap.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxmap.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxmotion.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
dmxmotion.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxsigio.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxsigio.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxxinput.c input: Purge AddOtherInputDevices DDX hook. 2010-09-01 15:26:52 +10:00
lnx-keyboard.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
lnx-keyboard.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
lnx-ms.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
lnx-ms.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
lnx-ps2.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
lnx-ps2.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
Makefile.am dmx: purge DMX EQ leftovers 2009-09-13 10:30:17 +10:00
usb-common.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
usb-common.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
usb-keyboard.c dmx: Get rid of xstrdup when argument is definitely non-NULL 2010-06-11 19:04:23 +07:00
usb-keyboard.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
usb-mouse.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
usb-mouse.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
usb-other.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
usb-other.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
usb-private.h Death to RCS tags. 2007-06-29 14:06:52 -04:00