Jimmy Miller wrote:
> I've been trying to get an isigraph to move to a certain location when
> the user presses the up arrow key.  I figured out how to get it to
> move based on any key:
> 
> test_pic_char =: 3 : 0
> wd 'setxywh pic 0 0 150 150'
> )
> 
> But I'm unsure how to detect the up key.  Based on the isigraph events
> page (http://www.jsoftware.com/help/user/isigraph_events.htm), I
> figured sysdata would be 21 when the user presses the up key:

The datatype of sysdata is always character. The numbers shown are the
indices of the character values in a. (alphabet).

You can just press a key, observe the value of sysdata, and then program
for that value.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to