Win - Added Lag Counter Display Toggle Hotkey

This commit is contained in:
adelikat 2009-04-12 18:50:54 +00:00
parent d608b190dd
commit 274d8178aa
3 changed files with 10 additions and 0 deletions

View File

@ -157,6 +157,8 @@ void HK_AutoHoldClearKeyDown(int) {
}
}
void HK_ToggleLag(int) {ShowLagFrameCounter ^= true;}
void HK_AutoHoldKeyDown(int) {AutoHoldPressed = true;}
void HK_AutoHoldKeyUp(int) {AutoHoldPressed = false;}
@ -228,6 +230,12 @@ void InitCustomKeys (SCustomKeys *keys)
i++;
};
keys->ToggleLag.handleKeyDown = HK_ToggleLag;
keys->ToggleLag.code = "Toggle Lag Display";
keys->ToggleLag.name = L"Toggle Lag Display";
keys->ToggleLag.page = HOTKEY_PAGE_MAIN;
keys->ToggleLag.key = NULL;
keys->Pause.handleKeyDown = HK_Pause;
keys->Pause.code = "Pause";
keys->Pause.name = L"Pause";

View File

@ -74,6 +74,7 @@ struct SCustomKeys
SCustomKey ToggleRasterizer;
SCustomKey PrintScreen;
SCustomKey ToggleLag;
SCustomKey LastItem; // dummy, must be last
//--methods--

View File

@ -13,6 +13,7 @@ void Display();
void Pause();
void FrameAdvance();
extern bool ShowInputDisplay;
extern bool ShowLagFrameCounter;
#define GPU3D_NULL 0
#define GPU3D_OPENGL 1