dmx: provide enough space for axis mappings
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 18 Sep 2013 06:04:44 +0000 (16:04 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 24 Sep 2013 17:52:54 +0000 (03:52 +1000)
commit160c2db32d0b9ee5316a44179a6af4f4722e3d0a
tree8a6a19569a0675213711a283f51002a6c9c3deaf
parent7d3d4ae55dd6ee338439e2424ac423b1df80501b
dmx: provide enough space for axis mappings

relmap/absmap is used as a evdev-axis-to-x-axis mapping. ABS_X maps to
axis 0, ABS_Y to 1, etc. skipping over non-existing axes so that the third bit
set in the ABS_* range is axis 2, and so on. This requires us to actually have
enough space to have all the ABS_*/REL_* range.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
hw/dmx/input/usb-private.h