本文整理汇总了C++中CAppParamParser::RemoteControlEnabled方法的典型用法代码示例。如果您正苦于以下问题:C++ CAppParamParser::RemoteControlEnabled方法的具体用法?C++ CAppParamParser::RemoteControlEnabled怎么用?C++ CAppParamParser::RemoteControlEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAppParamParser
的用法示例。
在下文中一共展示了CAppParamParser::RemoteControlEnabled方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RegisterKeyboardHandler
CInputManager::CInputManager(const CAppParamParser ¶ms) :
m_keymapEnvironment(new CKeymapEnvironment),
m_buttonTranslator(new CButtonTranslator),
m_irTranslator(new CIRTranslator),
m_customControllerTranslator(new CCustomControllerTranslator),
m_touchTranslator(new CTouchTranslator),
m_joystickTranslator(new CJoystickMapper),
m_mouseButtonMap(new MOUSE::CMouseWindowingButtonMap),
m_keyboardEasterEgg(new KEYBOARD::CKeyboardEasterEgg)
{
m_buttonTranslator->RegisterMapper("touch", m_touchTranslator.get());
m_buttonTranslator->RegisterMapper("customcontroller", m_customControllerTranslator.get());
m_buttonTranslator->RegisterMapper("joystick", m_joystickTranslator.get());
RegisterKeyboardHandler(m_keyboardEasterEgg.get());
if (!params.RemoteControlName().empty())
SetRemoteControlName(params.RemoteControlName());
if (!params.RemoteControlEnabled())
DisableRemoteControl();
// Register settings
std::set<std::string> settingSet;
settingSet.insert(CSettings::SETTING_INPUT_ENABLEMOUSE);
CServiceBroker::GetSettings().RegisterCallback(this, settingSet);
}
示例2: RegisterKeyboardHandler
CInputManager::CInputManager(const CAppParamParser ¶ms) :
m_keymapEnvironment(new CKeymapEnvironment),
m_buttonTranslator(new CButtonTranslator),
m_irTranslator(new CIRTranslator),
m_customControllerTranslator(new CCustomControllerTranslator),
m_touchTranslator(new CTouchTranslator),
m_joystickTranslator(new CJoystickMapper),
m_mouseButtonMap(new MOUSE::CMouseWindowingButtonMap),
m_keyboardEasterEgg(new KEYBOARD::CKeyboardEasterEgg)
{
m_buttonTranslator->RegisterMapper("touch", m_touchTranslator.get());
m_buttonTranslator->RegisterMapper("customcontroller", m_customControllerTranslator.get());
m_buttonTranslator->RegisterMapper("joystick", m_joystickTranslator.get());
RegisterKeyboardHandler(m_keyboardEasterEgg.get());
if (!params.RemoteControlName().empty())
SetRemoteControlName(params.RemoteControlName());
if (!params.RemoteControlEnabled())
DisableRemoteControl();
}