Guest User

Untitled

a guest
Jan 22nd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. void keyboard(unsigned char key, int x, int y)
  2. {
  3. switch (key) {
  4. case 27: // tecla de escape termina o programa
  5. exit(0);
  6. break;
  7. case 97:{ // a
  8. light0x += incLuz;
  9. break;
  10. }
  11. case 115: // s
  12. light0y += incLuz;
  13. break;
  14. case 100: // d
  15. light0z += incLuz;
  16. break;
  17. case 9: // Tab = Altera Inc
  18. incLuz = incLuz*-1;
  19. break;
  20. }
  21. }
Add Comment
Please, Sign In to add comment