summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick-shortcuts.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-22 17:44:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-22 17:45:04 +0100
commitaac65283a2b254f0338a6ad1609e5d916ba9dcfc (patch)
treef40d347ab0c93fd324519bd4a9671b898b718bb0 /opentrack/win32-joystick-shortcuts.cpp
parent1dd600c77c4b38c8b0531a02f061915d8234e30d (diff)
opentrack/joystick: rename header to clarify usage
Diffstat (limited to 'opentrack/win32-joystick-shortcuts.cpp')
-rw-r--r--opentrack/win32-joystick-shortcuts.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/opentrack/win32-joystick-shortcuts.cpp b/opentrack/win32-joystick-shortcuts.cpp
deleted file mode 100644
index 61a2a74a..00000000
--- a/opentrack/win32-joystick-shortcuts.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "win32-joystick-shortcuts.hpp"
-
-LPDIRECTINPUT8& win32_joy_ctx::dinput_handle()
-{
- (void) CoInitialize(nullptr);
-
- static LPDIRECTINPUT8 dinput_handle_ = nullptr;
-
- if (dinput_handle_ == nullptr)
- (void) DirectInput8Create(GetModuleHandle(nullptr),
- DIRECTINPUT_VERSION,
- IID_IDirectInput8,
- (void**) &dinput_handle_,
- nullptr);
-
- return dinput_handle_;
-}
-
-std::unordered_map<QString, std::shared_ptr<win32_joy_ctx::joy>>& win32_joy_ctx::joys()
-{
- static std::unordered_map<QString, std::shared_ptr<joy>> js;
-
- return js;
-}
-
-win32_joy_ctx& win32_joy_ctx::make()
-{
- static win32_joy_ctx ret;
- return ret;
-}