diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-12 19:12:55 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-12 19:12:55 +0200 |
commit | e9053e126614da615810534e42062d8da113a3a1 (patch) | |
tree | 5fa3ac64ea00ffc8ac5cda8d1551637a5ae4d551 | |
parent | 2fa51fca76e7d2c93a8fed3018ab4bbefa608bfa (diff) |
api/win32-joystick: fix buildtrackhat-1.2p3
How did this even happen?
-rw-r--r-- | opentrack/win32-joystick.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack/win32-joystick.cpp b/opentrack/win32-joystick.cpp index 5e6f2011..c0053261 100644 --- a/opentrack/win32-joystick.cpp +++ b/opentrack/win32-joystick.cpp @@ -209,7 +209,7 @@ win32_joy_ctx::enum_state::enum_state(std::unordered_map<QString, std::shared_pt joys = this->joys; } -win32_joy_ctx::enum_state::EnumJoysticksCallback(const DIDEVICEINSTANCE *pdidInstance, void *pContext) +BOOL CALLBACK win32_joy_ctx::enum_state::EnumJoysticksCallback(const DIDEVICEINSTANCE *pdidInstance, void *pContext) { enum_state& state = *reinterpret_cast<enum_state*>(pContext); const QString guid = guid_to_string(pdidInstance->guidInstance); @@ -256,7 +256,7 @@ end: return DIENUM_CONTINUE; } -win32_joy_ctx::enum_state::EnumObjectsCallback(const DIDEVICEOBJECTINSTANCE *pdidoi, void *ctx) +BOOL CALLBACK win32_joy_ctx::enum_state::EnumObjectsCallback(const DIDEVICEOBJECTINSTANCE *pdidoi, void *ctx) { if (pdidoi->dwType & DIDFT_AXIS) { |