LOGI_BMASK
STATEP->buttons = (~code) & LOGI_BMASK;
#define LOGI_NOT_BMASK (uchar_t)(~LOGI_BMASK) /* Rest of the bits */