1 /**************************************************************************
2 * tkglkey.c -- handle tkgl keyboard events
4 * Written by Curtis Olson, started May 1997.
7 * (Log is kept at end of this file)
8 **************************************************************************/
16 #include "../aircraft/aircraft.h"
19 /* Handle keyboard events */
20 void GLUTkey(unsigned char k, int x, int y) {
21 struct control_params *c;
23 c = ¤t_aircraft.controls;
25 printf("Key hit = %d\n", k);
43 case 2 /* TK_PGDWN */:
47 c->throttle[0] -= 0.05;
50 c->throttle[0] += 0.05;
59 /* Revision 1.1 1997/05/21 15:57:50 curt
60 /* Renamed due to added GLUT support.
62 * Revision 1.2 1997/05/19 18:22:41 curt
63 * Parameter tweaking ... starting to stub in fog support.
65 * Revision 1.1 1997/05/16 16:05:51 curt