Added rather untidy logic, to set the various BTN_TOOL keys in known specific states, when floating and when in close prox. Not sure this is needed. Also removed setting x and y to zero. Trying to get rid of the glitchy lines being drawn as the pen is brought rapidly from PEN_OUT to PEN_IN and contact.