summaryrefslogtreecommitdiffhomepage
path: root/dinput/dinput.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-16 17:01:24 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-16 17:53:40 +0200
commita5167736460bac22010333cfe7530a5fa50d2c70 (patch)
treeff4c5885483b06f347df37fb19fa97e6047ae959 /dinput/dinput.cpp
parent7e97b1b0ee2d93aeb70b0c50954ff08e1f0eca71 (diff)
compat, dinput: don't overdo COM logic
Diffstat (limited to 'dinput/dinput.cpp')
-rw-r--r--dinput/dinput.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dinput/dinput.cpp b/dinput/dinput.cpp
index 5dad3eed..8909921a 100644
--- a/dinput/dinput.cpp
+++ b/dinput/dinput.cpp
@@ -1,5 +1,4 @@
#include "dinput.hpp"
-#include "compat/win32-com.hpp"
#include <QDebug>
std::atomic<int> dinput_handle::refcnt;
@@ -7,7 +6,7 @@ std::atomic_flag dinput_handle::init_lock = ATOMIC_FLAG_INIT;
LPDIRECTINPUT8& dinput_handle::init_di()
{
- init_com_threading();
+ CoInitialize(nullptr);
static LPDIRECTINPUT8 di_ = nullptr;
if (di_ == nullptr)