clean up glutSetKeyRepeat function body
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1513 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
e9318d4e55
commit
00260311f3
@ -146,7 +146,7 @@ void FGAPIENTRY glutIgnoreKeyRepeat( int ignore )
|
|||||||
/*
|
/*
|
||||||
* Set global auto-repeat of keystrokes
|
* Set global auto-repeat of keystrokes
|
||||||
*
|
*
|
||||||
* RepeatMode should be either:
|
* RepeatMode should be any of:
|
||||||
* GLUT_KEY_REPEAT_OFF
|
* GLUT_KEY_REPEAT_OFF
|
||||||
* GLUT_KEY_REPEAT_ON
|
* GLUT_KEY_REPEAT_ON
|
||||||
* GLUT_KEY_REPEAT_DEFAULT
|
* GLUT_KEY_REPEAT_DEFAULT
|
||||||
@ -158,10 +158,10 @@ void FGAPIENTRY glutSetKeyRepeat( int repeatMode )
|
|||||||
switch( repeatMode )
|
switch( repeatMode )
|
||||||
{
|
{
|
||||||
case GLUT_KEY_REPEAT_OFF:
|
case GLUT_KEY_REPEAT_OFF:
|
||||||
case GLUT_KEY_REPEAT_ON:
|
fgState.KeyRepeat = GLUT_KEY_REPEAT_OFF;
|
||||||
fgState.KeyRepeat = repeatMode;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GLUT_KEY_REPEAT_ON:
|
||||||
case GLUT_KEY_REPEAT_DEFAULT:
|
case GLUT_KEY_REPEAT_DEFAULT:
|
||||||
fgState.KeyRepeat = GLUT_KEY_REPEAT_ON;
|
fgState.KeyRepeat = GLUT_KEY_REPEAT_ON;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user