mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoConfig/LocalConfig/HotkeyManager: Added hotkeys for switching stereo-3d presets.
Added 3 depth/convergence presets. They are adjustable via (existing) hotkeys - changes to depth and convergence are applied to current preset. Added 3 hotkeys for activating presets. Added hotkey for toggle between first and second preset. Added OSD message for convergence/depth changes. Presets are saved into per-game configs.
This commit is contained in:
@ -51,6 +51,14 @@ enum StereoMode
|
||||
STEREO_3DVISION
|
||||
};
|
||||
|
||||
constexpr int STEREOSCOPY_PRESETS_NUM = 3;
|
||||
|
||||
struct StereoscopyPreset final
|
||||
{
|
||||
int depth;
|
||||
int convergence;
|
||||
};
|
||||
|
||||
// NEVER inherit from this class.
|
||||
struct VideoConfig final
|
||||
{
|
||||
@ -84,6 +92,8 @@ struct VideoConfig final
|
||||
int iStereoDepth;
|
||||
int iStereoConvergence;
|
||||
bool bStereoSwapEyes;
|
||||
std::array<StereoscopyPreset, STEREOSCOPY_PRESETS_NUM> oStereoPresets;
|
||||
int iStereoActivePreset;
|
||||
|
||||
// Information
|
||||
bool bShowFPS;
|
||||
|
Reference in New Issue
Block a user