[PATCH evdev 2/3] Add proximity support.

Daniel Stone daniel at fooishbar.org
Tue Oct 19 09:09:32 PDT 2010


On Mon, Oct 11, 2010 at 09:33:28AM +1000, Peter Hutterer wrote:
> +    /* keep this list in sync with EvdevProcessKeyEvent */
> +    if (TestBit(BTN_TOOL_PEN, pEvdev->key_bitmask) ||
> +        TestBit(BTN_TOOL_RUBBER, pEvdev->key_bitmask) ||
> +        TestBit(BTN_TOOL_BRUSH, pEvdev->key_bitmask) ||
> +        TestBit(BTN_TOOL_PENCIL, pEvdev->key_bitmask) ||
> +        TestBit(BTN_TOOL_AIRBRUSH, pEvdev->key_bitmask) ||
> +        TestBit(BTN_TOOL_FINGER, pEvdev->key_bitmask) ||
> +        TestBit(BTN_TOOL_MOUSE, pEvdev->key_bitmask) ||
> +        TestBit(BTN_TOOL_LENS, pEvdev->key_bitmask))
> +        InitProximityClassDeviceStruct(device);

Would it be easier to chuck these all in an array rather than keeping
two big lists in sync?

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101020/f9adb59e/attachment.pgp>


More information about the xorg-devel mailing list