Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ControllerInterface::Win32 to wrap XInput and DInput
- Loading branch information
1 parent
377615b
commit 92ca6e1
Showing
7 changed files
with
69 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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(); | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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(); | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters