|
Author |
Topic: keypressed crash (Read 319 times) |
|
yanni
|
keypressed crash
« on: Jul 26th, 2004, 11:16pm » |
|
my system crashes when i use the "keyPressed" function. i'm confused because the same code doesn't cause Processing to crash on other computers. here is the code: void mouseDragged( ) { this.requestFocus( ); if( ( keyPressed ) && ( key == SHIFT ) ) { tx = px + mouseX - hx; ty = py + mouseY - hy; } else if( ( keyPressed ) && ( key == 'z' ) ) { sf = sp - 2.0 * ( mouseY - hy ) / width; } else { ry = ey + hy - mouseY; rx = ex + hx - mouseX; } }
|
|
|
|
fry
|
Re: keypressed crash
« Reply #1 on: Jul 27th, 2004, 12:20am » |
|
what do you mean by "crash"? i.e. you get an error? your applet locks up? procesisng itself locks up? you get a blue screen?
|
|
|
|
|