Пример #1
0
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);
}
Пример #2
0
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);
}
Пример #3
0
void Initialize()
{
	if (s_config.ControllersNeedToBeCreated())
		s_config.CreateController<HotkeyManager>();

	g_controller_interface.RegisterHotplugCallback(LoadConfig);

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

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

	s_enabled = true;
}
Пример #4
0
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;
}
Пример #5
0
void Initialize(InitializeMode init_mode)
{
  if (s_config.ControllersNeedToBeCreated())
  {
    for (unsigned int i = WIIMOTE_CHAN_0; i < MAX_BBMOTES; ++i)
      s_config.CreateController<WiimoteEmu::Wiimote>(i);
  }

  g_controller_interface.RegisterHotplugCallback(LoadConfig);

  LoadConfig();

  WiimoteReal::Initialize(init_mode);

  // Reload Wiimotes with our settings
  if (Movie::IsMovieActive())
    Movie::ChangeWiiPads();
}
Пример #6
0
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();
}