void keyPressed() { if(key =='='){ mo++; stillPos = 0; if (mo > formatsPresent+1) mo = 0; if (mo > formatsPresent) nvw = "Now Viewing: All"; else nvw = "Now Viewing: " + formats[mo]; nowViewingLabel.setValue(nvw); maxTime = 0; minTime = 50; } if(key =='-'){ mo--; stillPos = 0; if (mo < 0) mo = formatsPresent+1; if (mo > formatsPresent) nvw = "Now Viewing: All"; else nvw = "Now Viewing: " + formats[mo]; nowViewingLabel.setValue(nvw); maxTime = 0; minTime = 50; } if(key =='l'){ lg = !lg; } if(key =='d'){ dr = !dr; stillPos = 0; } if(key =='n'){ ln = !ln; } if(key =='o'){ inout = !inout; stillPos = 0; } if(key =='f'){ if(modval>1) modval--; } if(key =='v'){ if(modval>1) modval++; } if(key =='s'){ spherical = !spherical; if(spherical) cam.lookAt(0,0,0,zoom,1); else cam.lookAt(200,200,0,zoom,1); } if(key =='z'){ zoom-=100; cam.lookAt(0,0,0,zoom,100); } if(key =='x'){ zoom+=100; cam.lookAt(0,0,0,zoom,100); } }