Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void processSpecialKeys (int key, int mx, int my) {
- switch(key){
- case GLUT_KEY_LEFT :
- positionx-=2.0;
- // glutPostRedisplay();
- break;
- case GLUT_KEY_RIGHT :
- positionx+=2.0;
- // glutPostRedisplay();
- break;
- case GLUT_KEY_UP :
- positiony+=2;
- // glutPostRedisplay();
- break;
- case GLUT_KEY_DOWN :
- positiony-=2;
- // glutPostRedisplay();
- break;
- default:
- break;
- }
- }
Add Comment
Please, Sign In to add comment