diff --git a/Common/Context.cpp b/Common/Context.cpp
index 34083024b87c053bfd3bfd6a4425dfb62ead74c3..8ad101fdc44389af17ae90ad02793c04012d1a9a 100644
--- a/Common/Context.cpp
+++ b/Common/Context.cpp
@@ -8,6 +8,7 @@
 #include "GmshConfig.h"
 #include "Context.h"
 #include "OS.h"
+#include "GamePad.h"
 
 #if defined(HAVE_FLTK)
 #include <FL/Fl.H>