PDA

View Full Version : onKeyPress


ivorsmallun
10-18-2005, 05:52 PM
Hi folks,

How do i find the code for the onKeyPress.
eg. [SPACE for space] and [UP for the up arrow].
Need the code for the a,s,d and z Keys..

Can someone out there please help...

Ivorsmallun....

Paerez
10-18-2005, 09:47 PM
Look up the Key Class. You can use an event listener for the event onKeyDown and run the function getAscii() and if the letter is one of yours, take action.