Removing some errant tabs, fixing ticket #2137721, and adding special-key capability to recognizing the NumLock, Delete, and keypad '5' keys
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@764 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
6ad88aa884
commit
6633fd32ac
@ -32,6 +32,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Additional GLUT Key definitions for the Special key function
|
||||
*/
|
||||
#define GLUT_KEY_NUM_LOCK 0x006D
|
||||
#define GLUT_KEY_BEGIN 0x006E
|
||||
#define GLUT_KEY_DELETE 0x006F
|
||||
|
||||
/*
|
||||
* GLUT API Extension macro definitions -- behaviour when the user clicks on an "x" to close a window
|
||||
*/
|
||||
|
@ -1356,9 +1356,13 @@ void FGAPIENTRY glutMainLoopEvent( void )
|
||||
case XK_F11: special = GLUT_KEY_F11; break;
|
||||
case XK_F12: special = GLUT_KEY_F12; break;
|
||||
|
||||
case XK_KP_Left:
|
||||
case XK_Left: special = GLUT_KEY_LEFT; break;
|
||||
case XK_KP_Right:
|
||||
case XK_Right: special = GLUT_KEY_RIGHT; break;
|
||||
case XK_KP_Up:
|
||||
case XK_Up: special = GLUT_KEY_UP; break;
|
||||
case XK_KP_Down:
|
||||
case XK_Down: special = GLUT_KEY_DOWN; break;
|
||||
|
||||
case XK_KP_Prior:
|
||||
@ -1371,6 +1375,10 @@ void FGAPIENTRY glutMainLoopEvent( void )
|
||||
case XK_End: special = GLUT_KEY_END; break;
|
||||
case XK_KP_Insert:
|
||||
case XK_Insert: special = GLUT_KEY_INSERT; break;
|
||||
|
||||
case XK_Num_Lock : special = GLUT_KEY_NUM_LOCK; break;
|
||||
case XK_KP_Begin : special = GLUT_KEY_BEGIN; break;
|
||||
case XK_KP_Delete: special = GLUT_KEY_DELETE; break;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user