mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 08:19:20 +01:00
![Pokechu22](/assets/img/avatar_default.png)
Before, Free Look would accept background input by default, which means it was easy to accidentally move the camera while typing in another window. (This is because HotkeyScheduler::Run sets the input gate to `true` after it's copied the hotkey state, supposedly for other threads (though `SetInputGate` uses a `thread_local` variable so I'm not 100% sure that's correct) and for the GBA windows (which always accept unfocused input, presumably because they won't be focused normally).
24 lines
444 B
C++
24 lines
444 B
C++
// Copyright 2020 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "Common/Config/Config.h"
|
|
|
|
namespace FreeLook
|
|
{
|
|
enum class ControlType : int;
|
|
}
|
|
|
|
namespace Config
|
|
{
|
|
// Configuration Information
|
|
|
|
extern const Info<bool> FREE_LOOK_ENABLED;
|
|
extern const Info<bool> FREE_LOOK_BACKGROUND_INPUT;
|
|
|
|
// FreeLook.Controller1
|
|
extern const Info<FreeLook::ControlType> FL1_CONTROL_TYPE;
|
|
|
|
} // namespace Config
|