wordshooter.cpp
void NonPrintableKeys(int key, int x, int y) {
	if (key == GLUT_KEY_LEFT /*GLUT_KEY_LEFT is constant and contains ASCII for left arrow key*/) {
		// what to do when left key is pressed...

	}
	else if (key == GLUT_KEY_RIGHT /*GLUT_KEY_RIGHT is constant and contains ASCII for right arrow key*/) {

	}
	else if (key == GLUT_KEY_UP/*GLUT_KEY_UP is constant and contains ASCII for up arrow key*/) {
	}
	else if (key == GLUT_KEY_DOWN/*GLUT_KEY_DOWN is constant and contains ASCII for down arrow key*/) {
	}

	/* This function calls the Display function to redo the drawing. Whenever you need to redraw just call
	* this function*/
	/*
	glutPostRedisplay();
	*/
}
/*This function is called (automatically) whenever any non-printable key (such as up-arrow, down-arraw)
* is pressed from the keyboard
*
* You will have to add the necessary code here when the arrow keys are pressed or any other key is pressed...
*
* This function has three argument variable key contains the ASCII of the key pressed, while x and y tells the
* program coordinates of mouse pointer when key was pressed.
*
* */
This function is called (automatically) whenever any non-printable key (such as up-arrow, down-arraw)
is pressed from the keyboard

You will have to add the necessary code here when the arrow keys are pressed or any other key is pressed

This function has three argument variable key contains the ASCII of the key pressed, while x and y tells the
program coordinates of mouse pointer when key was pressed.
This function is called ( automatically ) whenever any non - printable key ( such as up - arrow down - arraw ) is pressed from the keyboard You will have to add the necessary code here when the arrow keys are pressed or any other key is pressed This function has three argument variable key contains the ASCII of the key pressed while x and y tells the program coordinates of mouse pointer when key was pressed .
void NonPrintableKeys(int key, int x, int y) {
	if (key == GLUT_KEY_LEFT ) {
	}
	else if (key == GLUT_KEY_RIGHT ) {
	}
	else if (key == GLUT_KEY_UP) {
	}
	else if (key == GLUT_KEY_DOWN) {
	}
}
void NonPrintableKeys ( int key , int x , int y ) { if ( key == GLUT_KEY_LEFT ) { } else if ( key == GLUT_KEY_RIGHT ) { } else if ( key == GLUT_KEY_UP ) { } else if ( key == GLUT_KEY_DOWN ) { } }
This function is called (automatically) whenever any non-printable key (such as up-arrow, down-arraw)
is pressed from the keyboard
This function is called ( automatically ) whenever any non - printable key ( such as up - arrow down - arraw ) is pressed from the keyboard
/*GLUT_KEY_LEFT is constant and contains ASCII for left arrow key*/ // what to do when left key is pressed... /*GLUT_KEY_RIGHT is constant and contains ASCII for right arrow key*/ /*GLUT_KEY_UP is constant and contains ASCII for up arrow key*/ /*GLUT_KEY_DOWN is constant and contains ASCII for down arrow key*/ /* This function calls the Display function to redo the drawing. Whenever you need to redraw just call
	* this function*/ /*
	glutPostRedisplay();
	*/