mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Added Toggle Freelook Hotkey
This commit is contained in:
parent
534547ee8b
commit
ac34911f32
3 changed files with 11 additions and 2 deletions
|
@ -524,6 +524,13 @@ void HotkeyScheduler::Run()
|
|||
// Freelook
|
||||
static float fl_speed = 1.0;
|
||||
|
||||
if (IsHotkey(HK_FREELOOK_TOGGLE))
|
||||
{
|
||||
const bool new_value = !Config::Get(Config::GFX_FREE_LOOK);
|
||||
Config::SetCurrent(Config::GFX_FREE_LOOK, new_value);
|
||||
OSD::AddMessage(StringFromFormat("Freelook: %s", new_value ? "Enabled" : "Disabled"));
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_FREELOOK_DECREASE_SPEED, true))
|
||||
fl_speed /= 1.1f;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue