-/* Arduino USB Joystick HID demo */
-/* Author: Darran Hunt, 
-*/
-
 /* 
 Mega2560 R3, digitalPin 22~ 37 used as row0 ~ row 15, 
 digital pin 38~53 used as column 0 ~ 15,

		prevMillis = millis();
	}
}

char oldMsg[10];

void loop() 
{

		for ( int colid = 0; colid < 16; colid ++ )
		{
			if ( colResult[ colid ] == 1 )
			//if ( digitalRead( colid + 38 ) == LOW )
			{
				joyReport.button[ rowid * 2 + colid / 8 ] |= (0x1 << ( colid % 8 ));
			}
