K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
This method is called when a key was pressed. Override it if your world wants to consume some keys (e.g. "1"-"9" for Sudoku). Don't consume plain arrow keys, or the user loses the ability to move the selection square with the keyboard.
Parameters:
description - the string describing the key, in this format.
loc - the selected location in the grid at the time the key was pressed
Returns:
true if the world consumes the key press, false if the GUI should consume it.
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |