diff options
Diffstat (limited to 'facetracknoir')
-rw-r--r-- | facetracknoir/global-shortcuts.cpp | 8 | ||||
-rw-r--r-- | facetracknoir/shortcuts.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/facetracknoir/global-shortcuts.cpp b/facetracknoir/global-shortcuts.cpp index e96530ae..1c10b160 100644 --- a/facetracknoir/global-shortcuts.cpp +++ b/facetracknoir/global-shortcuts.cpp @@ -1,9 +1,11 @@ #include "facetracknoir/facetracknoir.h" #if defined(_WIN32) -#include <windows.h> -#define DIRECTINPUT_VERSION 0x800 -#include <dinput.h> +# ifndef DIRECTINPUT_VERSION +# define DIRECTINPUT_VERSION 0x800 +# endif +# include <windows.h> +# include <dinput.h> QList<int> global_windows_key_sequences = QList<int>() diff --git a/facetracknoir/shortcuts.h b/facetracknoir/shortcuts.h index 685c78b6..05c36520 100644 --- a/facetracknoir/shortcuts.h +++ b/facetracknoir/shortcuts.h @@ -39,8 +39,6 @@ extern QList<int> global_windows_key_sequences; # undef DIRECTINPUT_VERSION # define DIRECTINPUT_VERSION 0x0800 # include <windows.h> -# undef DIRECTINPUT_VERSION -# define DIRECTINPUT_VERSION 0x0800 # include <dinput.h> struct Key { |