public PointerEvent handleScancode(int scancode) { if (protocol == null)
public synchronized PointerEvent handleScancode(int scancode) { if (protocol == null) {
	public PointerEvent handleScancode(int scancode) {		if (protocol == null)			return null;		// build the data block		data[pos++] = (byte) (scancode & 0xff);		pos %= data.length;		if (pos != 0)			return null;		// this debug output is for debugging the mouse protocol		/*		 * String line = ""; for( int i = 0; i < data.length; i++ ) line += "[0x" +		 * Integer.toHexString(data[i]) + "]"; log.debug(line);		 */		PointerEvent event = protocol.buildEvent(data);		// this debug output is to dump the pointer events		// log.debug(event.toString());		return event;	}