xinput: struct ValuatorState.mode: add mask
authorChristian Linhart <chris@DemoRecorder.com>
Tue, 19 Aug 2014 11:12:32 +0000 (13:12 +0200)
committerChristian Linhart <chris@demorecorder.com>
Mon, 25 Aug 2014 11:42:56 +0000 (13:42 +0200)
commitdcd78ec38917e6c2fda97b80f912a2822c2d5c01
tree9b2cdce69a16f1dfc5739b72c2a1642b2951f60c
parentc272fb7b262c90f7566cc9823ce776dbec53fb39
xinput: struct ValuatorState.mode: add mask

add new enum ValuatorStateModeMask as mask to field "mode"

V2: patch revised according to suggestions from Peter Harris:
* use bit instead of value
* use names which indicate the way the bits should be flipped

spec:
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt#n2095
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n1783
src/xinput.xml