mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 23:08:05 +03:00

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).
22 lines
728 B
C++
22 lines
728 B
C++
// Copyright 2020 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "Core/Config/FreeLookSettings.h"
|
|
|
|
#include <string>
|
|
|
|
#include "Common/Config/Config.h"
|
|
#include "Core/FreeLookConfig.h"
|
|
|
|
namespace Config
|
|
{
|
|
// Configuration Information
|
|
const Info<bool> FREE_LOOK_ENABLED{{System::FreeLook, "General", "Enabled"}, false};
|
|
const Info<bool> FREE_LOOK_BACKGROUND_INPUT{{System::FreeLook, "General", "BackgroundInput"},
|
|
false};
|
|
|
|
// FreeLook.Controller1
|
|
const Info<FreeLook::ControlType> FL1_CONTROL_TYPE{{System::FreeLook, "Camera1", "ControlType"},
|
|
FreeLook::ControlType::SixAxis};
|
|
|
|
} // namespace Config
|