summaryrefslogtreecommitdiff
path: root/public/panorama/uisettings.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/panorama/uisettings.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/panorama/uisettings.h')
-rw-r--r--public/panorama/uisettings.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/public/panorama/uisettings.h b/public/panorama/uisettings.h
new file mode 100644
index 0000000..a0ae0dc
--- /dev/null
+++ b/public/panorama/uisettings.h
@@ -0,0 +1,50 @@
+//=========== Copyright Valve Corporation, All rights reserved. ===============//
+//
+// Purpose:
+//=============================================================================//
+
+#ifndef UISETTINGS_H
+#define UISETTINGS_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+namespace panorama
+{
+
+//-----------------------------------------------------------------------------
+// Purpose: interface to query settings for this panorama UI
+//-----------------------------------------------------------------------------
+class IUISettings
+{
+public:
+ virtual const char *GetUILanguage() = 0;
+ virtual void GetPreferredResolution( int &dxPreferred, int &dyPreferred ) = 0;
+ virtual void UpdateGamepadMappingHints( const char *pszConnectedMappings ) = 0;
+ virtual bool BAllowOSModalDialog() = 0;
+
+ virtual void GetDefaultAudioDevice( CUtlString &strDevice ) = 0;
+ virtual void SetDefaultAudioDevice( const char *pchDevice ) = 0;
+
+ // if unset then the default audio device is used for voice output
+ virtual void GetDefaultVoiceDevice( CUtlString &strDevice ) = 0;
+ virtual void SetDefaultVoiceDevice( const char *pchDevice ) = 0;
+
+ virtual bool GetUseSystemAudioForVoice() = 0;
+ virtual void SetUseSystemAudioForVoice( bool bUseSystemAudio ) = 0;
+
+ virtual ETextInputHandlerType_t GetActiveTextInputHandlerType() const = 0;
+ virtual void SetDefaultTextInputHandlerType( ETextInputHandlerType_t eType ) = 0;
+
+ virtual ELanguage GetDefaultInputLanguage() const = 0;
+ virtual void SetDefaultInputLanguage( ELanguage ) = 0;
+
+ // should we show the screen saver?
+ virtual bool GetScreenSaverEnabled() = 0;
+ virtual void SetScreenSaverEnabled( bool bEnabled ) = 0;
+};
+
+} // namespace panorama
+
+#endif // UISETTINGS_H