Add stereoscopy hotkeys.

This commit is contained in:
Jules Blok
2014-11-11 00:06:44 +01:00
parent 21eabc1b9d
commit 6e62dd3415
4 changed files with 35 additions and 0 deletions

View File

@ -1123,6 +1123,26 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
{
State::Load(g_saveSlot);
}
else if (IsHotkey(event, HK_INCREASE_SEPARATION))
{
if (++g_Config.iStereoSeparation > 100)
g_Config.iStereoSeparation = 100;
}
else if (IsHotkey(event, HK_DECREASE_SEPARATION))
{
if (--g_Config.iStereoSeparation < 10)
g_Config.iStereoSeparation = 10;
}
else if (IsHotkey(event, HK_INCREASE_CONVERGENCE))
{
if (++g_Config.iStereoFocalLength > 200)
g_Config.iStereoFocalLength = 200;
}
else if (IsHotkey(event, HK_DECREASE_CONVERGENCE))
{
if (--g_Config.iStereoFocalLength < 10)
g_Config.iStereoFocalLength = 10;
}
else
{