- Subject: Re: Possible bug...
- From: "John E. Davis" <davis>
- Date: Wed, 8 Aug 2001 11:45:07 -0400
Richard van Zon <rvanzon@xxxxxxxxxxxx> wrote:
>I dont know if bug reports are supposed to be given here.
>And maybe it's not a bug, but I dont see anything I do wrong...
>I have S-Lang embedded in a C-Program, that calls onKeyDown()
>with a given key...
My suspicion is that your C program has trashed some memory somewhere.
I assume that you are using the latest version of slang (1.4.4).
>define onKeyDown(key)
>{
> if (key==276) { yvel=-1.0;y--; } // this one works fine
> if (key==275) { yvel=-1.0;y--; } // yvel=-1.0 is not valid here ?!
> if (key==273) { xvel=1.0;x--; } // this one works fine
> if (key==274) { xvel=-1.0;x++; } // this one works fine
>}
How are x, xvel, y, and yvel defined?
Thanks,
--John
[2001 date index]
[2001 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]