diff options
| author | Michael M <mchtly@gmail.com> | 2017-11-10 09:56:13 -0800 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-29 08:01:39 -0500 |
| commit | 92ca6e124e82f63b61982a5ecfb26ca818f2fe47 (patch) | |
| tree | 01e0f81f5c549d84033b1633638d7ac2d4b27820 /Source/Core/InputCommon/ControllerInterface/Win32 | |
| parent | 377615b06fd61717edb39b51964e611fd2da8cdc (diff) | |
Add ControllerInterface::Win32 to wrap XInput and DInput
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Win32')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp | 26 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Win32/Win32.h | 15 |
2 files changed, 41 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp new file mode 100644 index 0000000000..2ce583e608 --- /dev/null +++ b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp @@ -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(); +} diff --git a/Source/Core/InputCommon/ControllerInterface/Win32/Win32.h b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.h new file mode 100644 index 0000000000..038a792e54 --- /dev/null +++ b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.h @@ -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(); +} +} |
