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


C++ InputConfig::LoadConfig方法代码示例

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


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

示例1: Initialize

// if plugin isn't initialized, init and load config
void Initialize(void* const hwnd)
{
	if (s_config.controllers.empty())
		for (unsigned int i = 0; i < 4; ++i)
			s_config.controllers.push_back(new GCKeyboard(i));

	g_controller_interface.Initialize(hwnd);

	// load the saved controller config
	s_config.LoadConfig(true);
}
开发者ID:JanDevDE,项目名称:dolphin,代码行数:12,代码来源:GCKeyboard.cpp

示例2: Initialize

// if plugin isn't initialized, init and load config
void Initialize(void* const hwnd)
{
	// add 4 gcpads
	for (unsigned int i=0; i<4; ++i)
		s_config.controllers.push_back(new GCPad(i));

	g_controller_interface.SetHwnd(hwnd);
	g_controller_interface.Initialize();

	// load the saved controller config
	s_config.LoadConfig(true);
}
开发者ID:Blackbird88,项目名称:dolphin,代码行数:13,代码来源:GCPad.cpp

示例3: Initialize

void Initialize(void* const hwnd)
{
	if (s_config.ControllersNeedToBeCreated())
	{
		for (unsigned int i = 0; i < 4; ++i)
			s_config.CreateController<GCKeyboard>(i);
	}

	g_controller_interface.Initialize(hwnd);

	// Load the saved controller config
	s_config.LoadConfig(true);
}
开发者ID:badkarma12,项目名称:dolphin,代码行数:13,代码来源:GCKeyboard.cpp

示例4: Initialize

void Initialize()
{
  if (s_config.ControllersNeedToBeCreated())
  {
    for (unsigned int i = 0; i < 4; ++i)
      s_config.CreateController<GCPad>(i);
  }

  g_controller_interface.RegisterDevicesChangedCallback(LoadConfig);

  // Load the saved controller config
  s_config.LoadConfig(true);
}
开发者ID:delroth,项目名称:dolphin,代码行数:13,代码来源:GCPad.cpp

示例5: Initialize

void Initialize(void* const hwnd)
{
	if (s_config.controllers.empty())
		s_config.controllers.push_back(new HotkeyManager());

	g_controller_interface.Initialize(hwnd);

	// load the saved controller config
	s_config.LoadConfig(true);

	for (unsigned int i = 0; i < 6; ++i)
		hotkeyDown[i] = 0;
}
开发者ID:Pnum,项目名称:dolphin,代码行数:13,代码来源:HotkeyManager.cpp

示例6: Initialize

void Initialize(void* const hwnd)
{
	if (s_config.ControllersNeedToBeCreated())
		s_config.CreateController<HotkeyManager>();

	g_controller_interface.Initialize(hwnd);

	// load the saved controller config
	s_config.LoadConfig(true);

	for (u32& key : s_hotkeyDown)
		key = 0;

	s_enabled = true;
}
开发者ID:gamax92,项目名称:Ishiiruka,代码行数:15,代码来源:HotkeyManager.cpp

示例7: Initialize

void Initialize(void* const hwnd)
{
	if (s_config.controllers.empty())
		s_config.controllers.push_back(new HotkeyManager());

	g_controller_interface.Initialize(hwnd);

	// load the saved controller config
	s_config.LoadConfig(true);

	for (u32& key : s_hotkeyDown)
		key = 0;

	s_enabled = true;
}
开发者ID:dragonbane0,项目名称:dolphin,代码行数:15,代码来源:HotkeyManager.cpp

示例8: Initialize

void Initialize(void* const hwnd, bool wait)
{
	if (s_config.ControllersNeedToBeCreated())
	{
		for (unsigned int i = WIIMOTE_CHAN_0; i < MAX_BBMOTES; ++i)
			s_config.CreateController<WiimoteEmu::Wiimote>(i);
	}

	g_controller_interface.Initialize(hwnd);

	s_config.LoadConfig(false);

	WiimoteReal::Initialize(wait);

	// Reload Wiimotes with our settings
	if (Movie::IsMovieActive())
		Movie::ChangeWiiPads();
}
开发者ID:Abrahamh08,项目名称:dolphin,代码行数:18,代码来源:Wiimote.cpp

示例9: LoadConfig

void LoadConfig()
{
  s_config.LoadConfig(false);
  s_last_connect_request_counter.fill(0);
}
开发者ID:DINKIN,项目名称:dolphin,代码行数:5,代码来源:Wiimote.cpp

示例10: LoadConfig

void LoadConfig()
{
	s_config.LoadConfig(false);
}
开发者ID:Abrahamh08,项目名称:dolphin,代码行数:4,代码来源:Wiimote.cpp

示例11: LoadConfig

void LoadConfig()
{
	s_config.LoadConfig(true);
}
开发者ID:badkarma12,项目名称:dolphin,代码行数:4,代码来源:GCKeyboard.cpp


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