mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
Add ControllerInterface::Win32 to wrap XInput and DInput
This commit is contained in:
26
Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp
Normal file
26
Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp
Normal 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();
|
||||
}
|
15
Source/Core/InputCommon/ControllerInterface/Win32/Win32.h
Normal file
15
Source/Core/InputCommon/ControllerInterface/Win32/Win32.h
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright 2017 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
namespace Win32
|
||||
{
|
||||
void Init();
|
||||
void PopulateDevices(void* hwnd);
|
||||
void DeInit();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user