Ejemplo n.º 1
0
 public void keyPressed(KeyEvent e) {
   currentSO.keyPressed(e);
   switch (e.getKeyChar()) {
     case 's':
       if (shadowswitch == 0) {
         shadowswitch = 1;
       } else {
         shadowswitch = 0;
       }
       switched = true;
       break;
     case 'h':
       if (heightctrl) {
         heightctrl = false;
       } else {
         heightctrl = true;
       }
       break;
     case 'p':
       gamma += 0.1;
       System.out.println(gamma);
       switched = true;
       break;
     case 'o':
       gamma -= 0.1;
       System.out.println(gamma);
       switched = true;
       break;
   }
 }