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 **************************************************************************/
13 /* assumes -I/usr/include/mesa in compile command */
17 #include "../aircraft/aircraft.h"
20 /* Handle keyboard events */
21 GLenum key(int k, GLenum mask) {
22 struct control_params *c;
24 c = ¤t_aircraft.controls;
42 case 2 /* TK_PGDWN */:
46 c->throttle[0] -= 0.05;
49 c->throttle[0] += 0.05;
54 printf("Key hit = %d\n", k);
61 /* Revision 1.1 1997/05/16 16:05:51 curt