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
signature.asc
Description: Digital signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
