Fixed shortcuts and controls bugs in Open GL COnfig menu

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@1705 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: dd77477b6c01019e0be6a2a3b71ec621b548880c
Former-commit-id: 2951b3d019580616bcefc462b0d29bcfe8d130e9
This commit is contained in:
pouillot 2009-11-01 09:13:59 +00:00
parent bb4b2b2819
commit a03ac6a89f

View file

@ -212,11 +212,12 @@ void * OpenGLMenuInit(void *prevMenu)
GfParmReleaseHandle(param);
GfuiAddKey(scrHandle, 13, "Save", NULL, saveOpenGLOption, NULL);
GfuiAddKey(scrHandle, 27, "Cancel Selection", prevMenu, GfuiScreenActivate, NULL);
GfuiAddKey(scrHandle, 27, "Cancel", prevMenu, GfuiScreenActivate, NULL);
GfuiAddSKey(scrHandle, GLUT_KEY_F1, "Help", scrHandle, GfuiHelpScreen, NULL);
GfuiAddSKey(scrHandle, GLUT_KEY_F12, "Screen-Shot", NULL, GfuiScreenShot, NULL);
GfuiAddSKey(scrHandle, GLUT_KEY_LEFT, "Previous Option in list", (void*)0, changeTextureCompressState, NULL);
GfuiAddSKey(scrHandle, GLUT_KEY_RIGHT, "Next Option in list", (void*)1, changeTextureCompressState, NULL);
GfuiAddSKey(scrHandle, GLUT_KEY_F12, "Take a Screen-Shot", NULL, GfuiScreenShot, NULL);
GfuiAddSKey(scrHandle, GLUT_KEY_LEFT, "Decrease Texture Size Limit", (void*)-1, changeTextureSizeState, NULL);
GfuiAddSKey(scrHandle, GLUT_KEY_RIGHT, "Increase Texture Size Limit", (void*)1, changeTextureSizeState, NULL);
GfuiAddKey(scrHandle, ' ', "Toggle Texture Compression", (void*)1, changeTextureCompressState, NULL);
return scrHandle;
}