I am trying to capture keys from e61/e62 qwrty keyboard but it doesn't work? How do I trap qwerty keyboard keys on canvas?
I am trying to capture keys from e61/e62 qwrty keyboard but it doesn't work? How do I trap qwerty keyboard keys on canvas?
Hi,
do like this...
protected void keyPressed(int keyCode)
{
int gameAction = getGameAction(keyCode);
int k=getKeyCode(gameAction);
System.out.println("THE KEY CODE"+k);
}
The key code of that will print on the console.