Changeset 1859 in orxonox.OLD for orxonox/trunk/core
- Timestamp:
- May 5, 2004, 8:29:17 PM (21 years ago)
- Location:
- orxonox/trunk/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/orxonox.cc
r1858 r1859 73 73 glutReshapeFunc(reshape); 74 74 glutKeyboardFunc(keyboard); 75 glutSpecialFunc(specFunc); 75 76 } 76 77 … … 94 95 switch(key) { 95 96 case 27: 96 exit 0; 97 exit(0); 98 break; 99 } 100 } 101 102 103 void Orxonox::specFunc(int key, int x, int y) 104 { 105 switch(key) { 106 case GLUT_KEY_UP: 107 cout << "key_up" << endl; 108 break; 109 case GLUT_KEY_DOWN: 110 cout << "key_down" << endl; 111 break; 112 case GLUT_KEY_RIGHT: 113 cout << "key_right" << endl; 114 break; 115 case GLUT_KEY_LEFT: 116 cout << "key_left" << endl; 97 117 break; 98 118 } -
orxonox/trunk/core/orxonox.h
r1858 r1859 24 24 static void reshape (int w, int h); 25 25 static void keyboard(unsigned char key, int x, int y); 26 static void specFunc(int key, int x, int y); 26 27 }; 27 28
Note: See TracChangeset
for help on using the changeset viewer.