Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Added missing feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Hary309 committed Apr 18, 2018
1 parent 02a6763 commit 37a2fa9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Smooth Interior Camera/Mod/Mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ void Mod::Pulse()
if (IsActive())
m_pCam->Pulse();


if (GetAsyncKeyState(VK_INSERT))
{
if (m_config.m_disableShortcuts)
return;

if (GetForegroundWindow() != GetActiveWindow())
return;

Expand All @@ -119,10 +123,10 @@ void Mod::Pulse()

if (GetAsyncKeyState(VK_DELETE))
{
if (GetForegroundWindow() != GetActiveWindow())
if (m_config.m_disableShortcuts)
return;

if (!m_active)
if (GetForegroundWindow() != GetActiveWindow())
return;

if (m_tDelay + 1000 < GetTickCount())
Expand All @@ -140,10 +144,10 @@ void Mod::Pulse()

if (GetAsyncKeyState(VK_HOME))
{
if (GetForegroundWindow() != GetActiveWindow())
if (m_config.m_disableShortcuts)
return;

if (!m_active)
if (GetForegroundWindow() != GetActiveWindow())
return;

if (m_tDelay + 1000 < GetTickCount())
Expand Down

0 comments on commit 37a2fa9

Please sign in to comment.