FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   keypressed crash
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: keypressed crash  (Read 319 times)
yanni

WWW
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


WWW
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?
 
Pages: 1 

« Previous topic | Next topic »