ERASER
if ((changed_state & (TIP_SWITCH | ERASER)) == (TIP_SWITCH | ERASER)) /* we get both a tipswitch and eraser change at the same time */
tool = (button & wacom->eraser_mask) ? ERASER : STYLUS;