summaryrefslogtreecommitdiff
path: root/win/System.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/System.cpp')
-rw-r--r--win/System.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/win/System.cpp b/win/System.cpp
index 3e9ad46..8cc5c46 100644
--- a/win/System.cpp
+++ b/win/System.cpp
@@ -46,22 +46,6 @@ static void ShowLastError()
LocalFree( lpMsgBuf );
}
-/*
-typedef void (APIENTRY * GLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
-typedef void (APIENTRY * GLUNLOCKARRAYSEXTPROC) ();
-
-// Compiled vertex array function pointers.
-static GLLOCKARRAYSEXTPROC glLockArraysEXT;
-static GLUNLOCKARRAYSEXTPROC glUnlockArraysEXT;
-
-char* extensions = (char*)glGetString(GL_EXTENSIONS);
-if (strstr(extensions, "GL_EXT_compiled_vertex_array") != NULL)
-{
- glLockArraysEXT = (GLLOCKARRAYSEXTPROC)wglGetProcAddress("glLockArraysEXT");
- glUnlockArraysEXT = (GLUNLOCKARRAYSEXTPROC)wglGetProcAddress("glUnlockArraysEXT");
-}
-*/
-
static CMenu* GetMainMenu(int nIndex)
{
CWnd* pFrame = AfxGetMainWnd();
@@ -1608,3 +1592,8 @@ File* SystemImportClipboard()
return clip;
}
+
+bool Sys_KeyDown (int key)
+{
+ return GetKeyState (KEY_CONTROL) < 0;
+}