Add a hotkey for disabling the framelimit.

Atm this is hardcoded to '\t'.
This commit is contained in:
degasus
2014-02-16 23:13:01 +01:00
parent a40ea4e26a
commit 8483811b39
9 changed files with 27 additions and 8 deletions

View File

@ -7,7 +7,7 @@
#include "Common/Atomic.h"
#include "Common/CPUDetect.h"
#include "Core/ConfigManager.h"
#include "Core/Host.h"
#include "Core/Core.h"
#include "Core/HW/AudioInterface.h"
#include "Core/HW/VideoInterface.h"
@ -124,7 +124,7 @@ void CMixer::PushSamples(const short *samples, unsigned int num_samples)
if (*PowerPC::GetStatePtr() != PowerPC::CPU_RUNNING || soundStream->IsMuted())
break;
// Shortcut key for Throttle Skipping
if (Host_GetKeyState('\t'))
if (Core::IsFramelimiterTempDisabled)
break;
SLEEP(1);
soundStream->Update();