Win - Added Lag Counter Display Toggle Hotkey
This commit is contained in:
parent
d608b190dd
commit
274d8178aa
|
@ -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";
|
||||
|
|
|
@ -74,6 +74,7 @@ struct SCustomKeys
|
|||
SCustomKey ToggleRasterizer;
|
||||
|
||||
SCustomKey PrintScreen;
|
||||
SCustomKey ToggleLag;
|
||||
SCustomKey LastItem; // dummy, must be last
|
||||
|
||||
//--methods--
|
||||
|
|
|
@ -13,6 +13,7 @@ void Display();
|
|||
void Pause();
|
||||
void FrameAdvance();
|
||||
extern bool ShowInputDisplay;
|
||||
extern bool ShowLagFrameCounter;
|
||||
|
||||
#define GPU3D_NULL 0
|
||||
#define GPU3D_OPENGL 1
|
||||
|
|
Loading…
Reference in New Issue