20 LOG_ERROR(
"InputManager",
"Failed to create input backend");
27 LOG_ERROR(
"InputManager",
"Failed to initialize input backend");
33 LOG_INFO(
"InputManager",
"Initialized with backend: %s",
47 LOG_INFO(
"InputManager",
"Initialized with custom backend: %s",
74 for (
int i = 0; i < 12; i++) {
75 bool button_held = (final_state.
buttons & (1 << i)) != 0;
80 static int poll_log_count = 0;
81 if (final_state.
buttons != 0 && poll_log_count++ < 50) {
82 LOG_INFO(
"InputManager",
"Poll: buttons=0x%04X (passed to SetButtonState)",
104 "continuous_polling disabled in config; forcing it ON to keep edge "
105 "detection working for menus (event-based path is not wired)");
111 "ignore_imgui_text_input was false; forcing true so game input is not blocked");
123 uint16_t mask = 1 <<
static_cast<uint8_t
>(button);
129 uint16_t mask = ~(1 <<
static_cast<uint8_t
>(button));
void SetButtonState(int player, int button, bool pressed)
#define LOG_ERROR(category, format,...)
#define LOG_WARN(category, format,...)
#define LOG_INFO(category, format,...)