From 47303b26c76fda45aa5b64b6594fda6b0d2950d7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 15 Jul 2015 14:09:21 +0200 Subject: [PATCH] - define GET_XBUTTON_WPARAM for MinGW in all file which need it. --- src/win32/i_input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/win32/i_input.cpp b/src/win32/i_input.cpp index a26ff320e..941fc15de 100644 --- a/src/win32/i_input.cpp +++ b/src/win32/i_input.cpp @@ -110,6 +110,11 @@ #include "rawinput.h" +// Compensate for w32api's lack +#ifndef GET_XBUTTON_WPARAM +#define GET_XBUTTON_WPARAM(wParam) (HIWORD(wParam)) +#endif + #ifdef _DEBUG #define INGAME_PRIORITY_CLASS NORMAL_PRIORITY_CLASS