2020-12-05 13:08:24 +01:00
|
|
|
#pragma once
|
2020-10-04 22:46:28 +02:00
|
|
|
|
2020-12-22 09:42:57 +01:00
|
|
|
#include "util/atomic.hpp"
|
|
|
|
|
|
2020-10-04 22:46:28 +02:00
|
|
|
namespace input
|
|
|
|
|
{
|
2024-08-12 20:31:06 +02:00
|
|
|
enum class active_mouse_and_keyboard : u32
|
|
|
|
|
{
|
|
|
|
|
pad,
|
|
|
|
|
emulated
|
|
|
|
|
};
|
|
|
|
|
extern atomic_t<active_mouse_and_keyboard> g_active_mouse_and_keyboard;
|
|
|
|
|
|
2022-04-19 20:27:32 +02:00
|
|
|
extern atomic_t<bool> g_pads_intercepted;
|
|
|
|
|
extern atomic_t<bool> g_keyboards_intercepted;
|
|
|
|
|
extern atomic_t<bool> g_mice_intercepted;
|
2020-10-04 22:46:28 +02:00
|
|
|
|
2022-04-26 00:15:27 +02:00
|
|
|
void SetIntercepted(bool pads_intercepted, bool keyboards_intercepted, bool mice_intercepted, const char* func = __builtin_FUNCTION());
|
|
|
|
|
void SetIntercepted(bool all_intercepted, const char* func = __builtin_FUNCTION());
|
2024-08-12 20:31:06 +02:00
|
|
|
|
|
|
|
|
void set_mouse_and_keyboard(active_mouse_and_keyboard device);
|
|
|
|
|
void toggle_mouse_and_keyboard();
|
2020-10-04 22:46:28 +02:00
|
|
|
}
|