View Single Post
  #1 (permalink)  
Old 07-31-2007, 07:15 PM
carl carl is offline
Member
 
Join Date: Jul 2007
Posts: 35
carl is on a distinguished road
Help user interface
Hi, I need help with a small simple program i am making for java all i need is to do a user interface with they use the arrows on the keyboard not the ones on the num pad on the right.
Here is a table of what happens when what arrows get pushed down.

Code:
Left Arrow:x=x-1; Right Arrow:x=x+1; Up Arrow:y=y+1; Down Arrow:y=y-1;
And the default is that x=0 and y=0 just a simple script is all that i am looking for.
Thanks.
Reply With Quote
Sponsored Links