本文整理汇总了C++中ProxyHelper::SaveProfile方法的典型用法代码示例。如果您正苦于以下问题:C++ ProxyHelper::SaveProfile方法的具体用法?C++ ProxyHelper::SaveProfile怎么用?C++ ProxyHelper::SaveProfile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProxyHelper
的用法示例。
在下文中一共展示了ProxyHelper::SaveProfile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
}
if(KEY_DOWN(VK_F6))
{
if(KEY_DOWN(VK_SHIFT))
{
separation = 0.0f;
convergence = 0.0f;
offset = 0.0f;
yaw_multiplier = 25.0f;
pitch_multiplier = 25.0f;
roll_multiplier = 1.0f;
//matrixIndex = 0;
saveWaitCount = 500;
doSaveNext = true;
}
else if(keyWaitCount <= 0)
{
swap_eyes = !swap_eyes;
stereoView->SwapEyes(swap_eyes);
keyWaitCount = 200;
}
}
if(KEY_DOWN(VK_F7) && keyWaitCount <= 0)
{
matrixIndex++;
if(matrixIndex > 15)
{
matrixIndex = 0;
}
keyWaitCount = 200;
}
if(KEY_DOWN(VK_F8))
{
if(KEY_DOWN(VK_SHIFT))
{
pitch_multiplier -= mouseSpeed;
}
else if(KEY_DOWN(VK_CONTROL))
{
roll_multiplier -= rollSpeed;
}
else
{
yaw_multiplier -= mouseSpeed;
}
if(trackerInitialized && tracker->isAvailable())
{
tracker->setMultipliers(yaw_multiplier, pitch_multiplier, roll_multiplier);
}
saveWaitCount = 500;
doSaveNext = true;
}
if(KEY_DOWN(VK_F9))
{
if(KEY_DOWN(VK_SHIFT))
{
pitch_multiplier += mouseSpeed;
}
else if(KEY_DOWN(VK_CONTROL))
{
roll_multiplier += rollSpeed;
}
else
{
yaw_multiplier += mouseSpeed;
}
if(trackerInitialized && tracker->isAvailable())
{
tracker->setMultipliers(yaw_multiplier, pitch_multiplier, roll_multiplier);
}
saveWaitCount = 500;
doSaveNext = true;
}
if(saveDebugFile)
{
debugFile.close();
}
saveDebugFile = false;
if(KEY_DOWN(VK_F12) && keyWaitCount <= 0)
{
// uncomment to save text debug file
//saveDebugFile = true;
keyWaitCount = 200;
}
if(doSaveNext && saveWaitCount < 0)
{
doSaveNext = false;
ProxyHelper* helper = new ProxyHelper();
helper->SaveProfile(separation, convergence, yaw_multiplier, pitch_multiplier, roll_multiplier);
}
}