Add ControllerInterface::Win32 to wrap XInput and DInput

This commit is contained in:
Michael M
2017-11-10 09:56:13 -08:00
committed by Jordan Woyak
parent 377615b06f
commit 92ca6e124e
7 changed files with 69 additions and 30 deletions

View File

@ -0,0 +1,26 @@
// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "InputCommon/ControllerInterface/Win32/Win32.h"
#include "InputCommon/ControllerInterface/DInput/DInput.h"
#include "InputCommon/ControllerInterface/XInput/XInput.h"
void ciface::Win32::Init()
{
// DInput::Init();
XInput::Init();
}
void ciface::Win32::PopulateDevices(void* hwnd)
{
DInput::PopulateDevices(static_cast<HWND>(hwnd));
XInput::PopulateDevices();
}
void ciface::Win32::DeInit()
{
// DInput::DeInit();
XInput::DeInit();
}