当前位置: 首页>>代码示例>>C++>>正文


C++ ProxyHelper::SaveUserConfigMirrorMode方法代码示例

本文整理汇总了C++中ProxyHelper::SaveUserConfigMirrorMode方法的典型用法代码示例。如果您正苦于以下问题:C++ ProxyHelper::SaveUserConfigMirrorMode方法的具体用法?C++ ProxyHelper::SaveUserConfigMirrorMode怎么用?C++ ProxyHelper::SaveUserConfigMirrorMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ProxyHelper的用法示例。


在下文中一共展示了ProxyHelper::SaveUserConfigMirrorMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: if


//.........这里部分代码省略.........
			{
				DismissPopup(VPT_STATS);
			}
			else
			{
				VireioPopup popup(VPT_STATS);
				ShowPopup(popup);
			}
		}

		//Toggle positional tracking
		if (config.HotkeyTogglePositionalTracking->IsPressed(controls) && HotkeysActive())
		{
			m_bPosTrackingToggle = !m_bPosTrackingToggle;

			ShowPopup(VPT_NOTIFICATION, VPS_TOAST, 1200,
				retprintf("HMD Positional Tracking %s",
					m_bPosTrackingToggle?"Enabled":"Disabled"));

			if (!m_bPosTrackingToggle)
				m_spShaderViewAdjustment->UpdatePosition(0.0f, 0.0f, 0.0f);
		}

		//Toggle mirror mode
		if (config.HotkeyMirrorMode->IsPressed(controls) && HotkeysActive())
		{
			config.mirror_mode = 1 - config.mirror_mode;

			ShowPopup(VPT_NOTIFICATION, VPS_TOAST, 1200,
				retprintf("Mirroring Mode %s",
					config.mirror_mode ? "Distorted Rift View" : "Undistorted"));

			ProxyHelper ph;
			ph.SaveUserConfigMirrorMode(config.mirror_mode);
		}

		//Toggle SDK Pose Prediction- LSHIFT + DELETE
		if (hmdInfo->GetHMDManufacturer() == HMD_OCULUS	&&
			config.HotkeyTogglePosePrediction->IsPressed(controls) && HotkeysActive() && tracker)
		{
			tracker->useSDKPosePrediction = !tracker->useSDKPosePrediction;

			ShowPopup(VPT_NOTIFICATION, VPS_TOAST, 1200,
				retprintf("SDK Pose Prediction %s",
					tracker->useSDKPosePrediction?"Enabled":"Disabled"));
		}

		//Toggle chromatic abberation correction - SHIFT+J
		if (config.HotkeyToggleChromaticAbberationCorrection->IsPressed(controls) && HotkeysActive())
		{
			stereoView->chromaticAberrationCorrection = !stereoView->chromaticAberrationCorrection;

			ShowPopup(VPT_NOTIFICATION, VPS_TOAST, 1200,
				retprintf("Chromatic Aberration Correction %s",
					stereoView->chromaticAberrationCorrection?"Enabled":"Disabled"));
		}

		//Double clicking the NUMPAD0 key will invoke the VR mouse
		//Double clicking when VR mouse is enabled will either:
		//   - Toggle between GUI and HUD scaling if double click occurs within 2 seconds
		//   - Disable VR Mouse if double click occurs after 2 seconds
		static DWORD numPad0Click = 0;
		if ((config.HotkeyVRMouse->IsPressed(controls) || numPad0Click != 0) && HotkeysActive())
		{
			if (config.HotkeyVRMouse->IsPressed(controls) && numPad0Click == 0)
			{
开发者ID:evilc0des,项目名称:Perception,代码行数:67,代码来源:Hotkeys.cpp


注:本文中的ProxyHelper::SaveUserConfigMirrorMode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。