mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 09:50:13 +01:00
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>
|
||
|---|---|---|
| .. | ||
| atKeynames.h | ||
| ChkNotMaskEv.c | ||
| ChkNotMaskEv.h | ||
| dmxarg.c | ||
| dmxarg.h | ||
| dmxbackend.c | ||
| dmxbackend.h | ||
| dmxcommon.c | ||
| dmxcommon.h | ||
| dmxconsole.c | ||
| dmxconsole.h | ||
| dmxdetach.c | ||
| dmxdummy.c | ||
| dmxdummy.h | ||
| dmxevents.c | ||
| dmxevents.h | ||
| dmxinputinit.c | ||
| dmxinputinit.h | ||
| dmxmap.c | ||
| dmxmap.h | ||
| dmxmotion.c | ||
| dmxmotion.h | ||
| dmxsigio.c | ||
| dmxsigio.h | ||
| dmxxinput.c | ||
| lnx-keyboard.c | ||
| lnx-keyboard.h | ||
| lnx-ms.c | ||
| lnx-ms.h | ||
| lnx-ps2.c | ||
| lnx-ps2.h | ||
| Makefile.am | ||
| usb-common.c | ||
| usb-common.h | ||
| usb-keyboard.c | ||
| usb-keyboard.h | ||
| usb-mouse.c | ||
| usb-mouse.h | ||
| usb-other.c | ||
| usb-other.h | ||
| usb-private.h | ||