From a6a43f1b95bd33990a21fd1a52bff8c4a129d4e9 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 22 Aug 2000 14:14:07 +0000 Subject: Several changes, see docs/CHANGES.txt for a complete list git-svn-id: http://svn.leocad.org/trunk@103 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/System.cpp | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'win/System.cpp') 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; +} -- cgit v1.2.3