mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-13 22:30:24 +02:00
Add ControllerInterface::Win32 to wrap XInput and DInput
This commit is contained in:
1 parent
377615b06f
commit
92ca6e124e
7 files changed
+69
-30
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user