Bllocking Windows keys in Windows 2000
Hi all !!
How the hell can I block the windows keys on the newer windows-keyboards. My game always jumps out and shows the start menu when I press the windows-keys ???
Phillip
Phillip Schuster
If you use DirectInput the windowkey is blocked automatically. I don''t beleive there is a way to block it using normal Win32 API calls, unless it works with a KeyboardHook.
WitchLord
WitchLord
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Don''t ever block it! Handle it!
Just watch the WM_ACTIVATE message and pause your game when its window is in the background. I believe the value that tells you this is:
if( LOWORD(wParam) == WA_INACTIVE )
{
// set a flag to pause the game
}
else
{
// clear the flag to resume the game
}
- null_pointer
Sabre Multimedia
Just watch the WM_ACTIVATE message and pause your game when its window is in the background. I believe the value that tells you this is:
if( LOWORD(wParam) == WA_INACTIVE )
{
// set a flag to pause the game
}
else
{
// clear the flag to resume the game
}
- null_pointer
Sabre Multimedia
I don''t think that he would want the game to jump to the desktop when a win key is pressed. I mean, it''s annoying to have to wait for the desktop to load up and then have to cancel the pop up and go back in the game when you tried to fire and hit the win key. Lost many games of doom like that , so block it I say, and if you can''t, rip the keys out of every keyboard that is used to play your game
OneEyeLessThanNone
- life feeds on life feeds on life feeds on life feeds on life
OneEyeLessThanNone
- life feeds on life feeds on life feeds on life feeds on life
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement