mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
Input: log interception and its source function
This commit is contained in:
parent
08ebc59db0
commit
c8700dd246
3 changed files with 10 additions and 6 deletions
|
|
@ -5,14 +5,18 @@
|
|||
#include "Input/pad_thread.h"
|
||||
#include "Emu/IdManager.h"
|
||||
|
||||
LOG_CHANNEL(input_log, "Input");
|
||||
|
||||
namespace input
|
||||
{
|
||||
atomic_t<bool> g_pads_intercepted{false};
|
||||
atomic_t<bool> g_keyboards_intercepted{false};
|
||||
atomic_t<bool> g_mice_intercepted{false};
|
||||
|
||||
void SetIntercepted(bool pads_intercepted, bool keyboards_intercepted, bool mice_intercepted)
|
||||
void SetIntercepted(bool pads_intercepted, bool keyboards_intercepted, bool mice_intercepted, const char* func)
|
||||
{
|
||||
input_log.warning("SetIntercepted: pads=%d, keyboards=%d, mice=%d, src=%s)", pads_intercepted, keyboards_intercepted, mice_intercepted, func);
|
||||
|
||||
g_pads_intercepted = pads_intercepted;
|
||||
g_keyboards_intercepted = keyboards_intercepted;
|
||||
g_mice_intercepted = mice_intercepted;
|
||||
|
|
@ -30,8 +34,8 @@ namespace input
|
|||
}
|
||||
}
|
||||
|
||||
void SetIntercepted(bool all_intercepted)
|
||||
void SetIntercepted(bool all_intercepted, const char* func)
|
||||
{
|
||||
SetIntercepted(all_intercepted, all_intercepted, all_intercepted);
|
||||
SetIntercepted(all_intercepted, all_intercepted, all_intercepted, func);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue