mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
29 lines
558 B
C++
29 lines
558 B
C++
|
|
#include "stdafx.h"
|
|||
|
|
#include "interception.h"
|
|||
|
|
#include "KeyboardHandler.h"
|
|||
|
|
#include "MouseHandler.h"
|
|||
|
|
#include "Input/pad_thread.h"
|
|||
|
|
#include "Emu/IdManager.h"
|
|||
|
|
|
|||
|
|
namespace input
|
|||
|
|
{
|
|||
|
|
std::atomic<bool> g_intercepted{false};
|
|||
|
|
|
|||
|
|
void SetIntercepted(bool intercepted)
|
|||
|
|
{
|
|||
|
|
g_intercepted = intercepted;
|
|||
|
|
|
|||
|
|
pad::SetIntercepted(intercepted);
|
|||
|
|
|
|||
|
|
if (const auto handler = g_fxo->get<KeyboardHandlerBase>())
|
|||
|
|
{
|
|||
|
|
handler->SetIntercepted(intercepted);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if (const auto handler = g_fxo->get<MouseHandlerBase>())
|
|||
|
|
{
|
|||
|
|
handler->SetIntercepted(intercepted);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|