X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee993c741097adb4ca4f0a18b6c7848950a2ffb6..4b04699b670b4ab4632229fa0264d154acd3bec1:/samples/joytest/joytest.cpp diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 5fe4889958..189314b3a8 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -6,7 +6,7 @@ // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx/wx.h". @@ -20,8 +20,12 @@ #include "wx/wx.h" #endif -#include -#include +#if !wxUSE_JOYSTICK +#error You must set wxUSE_JOYSTICK to 1 in setup.h! +#endif + +#include "wx/wave.h" +#include "wx/joystick.h" #include "joytest.h" @@ -90,7 +94,7 @@ bool MyApp::OnInit(void) } BEGIN_EVENT_TABLE(MyCanvas, wxScrolledWindow) - EVT_JOYSTICK_EVENTS(MyCanvas::OnJoystickEvent) + EVT_JOYSTICK_EVENTS(MyCanvas::OnJoystickEvent) END_EVENT_TABLE() // Define a constructor for my canvas