Permalink
Browse files

removed Task Key Hook code for windows (wasn't being used anyway)

  • Loading branch information...
1 parent 7f516ea commit 05fc3c907bef641f4281c2bffae18422005eee21 @urkle urkle committed May 14, 2010
Showing with 0 additions and 45 deletions.
  1. +0 −2 HPL.xcodeproj/project.pbxproj
  2. +0 −29 include/impl/TaskKeyHook.h
  3. +0 −14 sources/impl/LowLevelGraphicsSDL.cpp
View
2 HPL.xcodeproj/project.pbxproj
@@ -525,7 +525,6 @@
DB4AFBE00D70773700809E03 /* Material_Water.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Material_Water.h; sourceTree = "<group>"; };
DB4AFBE10D70773700809E03 /* VideoStream.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = VideoStream.h; sourceTree = "<group>"; };
DB4AFBF10D70776800809E03 /* OpenALSoundEnvironment.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = OpenALSoundEnvironment.h; sourceTree = "<group>"; };
- DB4AFBF20D70776800809E03 /* TaskKeyHook.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = TaskKeyHook.h; sourceTree = "<group>"; };
DB4AFBF40D70778200809E03 /* ActionHaptic.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ActionHaptic.h; sourceTree = "<group>"; };
DB4AFBF50D70779000809E03 /* VideoManager.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = VideoManager.h; sourceTree = "<group>"; };
DB4AFBF60D7077A100809E03 /* SoundEnvironment.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SoundEnvironment.h; sourceTree = "<group>"; };
@@ -868,7 +867,6 @@
children = (
DBF9A1F7119A58E600CCFDC9 /* VideoStreamTheora.h */,
DB4AFBF10D70776800809E03 /* OpenALSoundEnvironment.h */,
- DB4AFBF20D70776800809E03 /* TaskKeyHook.h */,
DB6E15BA0B6B173800203538 /* scriptstring.h */,
DBCEE5D40B4B34340088A7E3 /* LowLevelSoundOpenAL.h */,
DBCEE5D50B4B34340088A7E3 /* OpenALSoundChannel.h */,
View
29 include/impl/TaskKeyHook.h
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2006-2010 - Frictional Games
- *
- * This file is part of HPL1 Engine.
- *
- * HPL1 Engine is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * HPL1 Engine is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with HPL1 Engine. If not, see <http://www.gnu.org/licenses/>.
- */
-////////////////////////////////////////////////////////////////
-// MSDN Magazine -- September 2002
-// If this code works, it was written by Paul DiLascia.
-// If not, I don't know who wrote it.
-// Compiles with Visual Studio 6.0 and Visual Studio .NET on Windows XP.
-//
-#define DLLIMPORT __declspec(dllimport)
-
-DLLIMPORT BOOL DisableTaskKeys(BOOL bEnable, BOOL bBeep);
-DLLIMPORT BOOL AreTaskKeysDisabled();
-
View
14 sources/impl/LowLevelGraphicsSDL.cpp
@@ -23,7 +23,6 @@
#pragma comment(lib, "Cg.lib")
#pragma comment(lib, "CgGL.lib")
#pragma comment(lib, "SDL_ttf.lib")
-#pragma comment(lib, "TaskKeyHook.lib")
#endif
#include <assert.h>
@@ -41,10 +40,6 @@
#include "impl/OcclusionQueryOGL.h"
-#ifdef WIN32
-#include "impl/TaskKeyHook.h"
-#endif
-
namespace hpl {
//////////////////////////////////////////////////////////////////////////
@@ -227,15 +222,6 @@ namespace hpl {
SetWindowCaption(asWindowCaption);
}
- //Trap Alt tab if in fullscreen
- #ifdef WIN32
- if(abFullscreen)
- {
- //mhKeyTrapper = LoadLibrary( "keyhook.dll" );
- //::DisableTaskKeys(true,false);
- }
- #endif //WIN32
-
Log(" Init Glee...");
if(GLeeInit())
{

0 comments on commit 05fc3c9

Please sign in to comment.