mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DolphinQt: Fix stereoscopy hotkeys.
This commit is contained in:
@ -508,10 +508,11 @@ void HotkeyScheduler::Run()
|
||||
const auto stereo_depth = Config::Get(Config::GFX_STEREO_DEPTH);
|
||||
|
||||
if (IsHotkey(HK_DECREASE_DEPTH, true))
|
||||
Config::SetCurrent(Config::GFX_STEREO_DEPTH, std::min(stereo_depth - 1, 0));
|
||||
Config::SetCurrent(Config::GFX_STEREO_DEPTH, std::max(stereo_depth - 1, 0));
|
||||
|
||||
if (IsHotkey(HK_INCREASE_DEPTH, true))
|
||||
Config::SetCurrent(Config::GFX_STEREO_DEPTH, std::min(stereo_depth + 1, 100));
|
||||
Config::SetCurrent(Config::GFX_STEREO_DEPTH,
|
||||
std::min(stereo_depth + 1, Config::GFX_STEREO_DEPTH_MAXIMUM));
|
||||
|
||||
const auto stereo_convergence = Config::Get(Config::GFX_STEREO_CONVERGENCE);
|
||||
|
||||
@ -519,7 +520,8 @@ void HotkeyScheduler::Run()
|
||||
Config::SetCurrent(Config::GFX_STEREO_CONVERGENCE, std::max(stereo_convergence - 5, 0));
|
||||
|
||||
if (IsHotkey(HK_INCREASE_CONVERGENCE, true))
|
||||
Config::SetCurrent(Config::GFX_STEREO_CONVERGENCE, std::min(stereo_convergence + 5, 500));
|
||||
Config::SetCurrent(Config::GFX_STEREO_CONVERGENCE,
|
||||
std::min(stereo_convergence + 5, Config::GFX_STEREO_CONVERGENCE_MAXIMUM));
|
||||
|
||||
// Freelook
|
||||
static float fl_speed = 1.0;
|
||||
|
Reference in New Issue
Block a user