X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c05b807a54d211e51ed39eb40a5e6f4ee993305..0a68bc69086f122b9f7166f505c415db9ee21afe:/samples/joytest/joytest.cpp?ds=sidebyside diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 7298b2f286..a073793928 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -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" @@ -130,9 +134,9 @@ void MyCanvas::OnJoystickEvent(wxJoystickEvent& event) char buf[100]; if (event.ButtonDown()) - sprintf(buf, "Joystick (%ld, %ld) Fire!", pt.x, pt.y); + sprintf(buf, "Joystick (%d, %d) Fire!", pt.x, pt.y); else - sprintf(buf, "Joystick (%ld, %ld)", pt.x, pt.y); + sprintf(buf, "Joystick (%d, %d)", pt.x, pt.y); frame->SetStatusText(buf); #if wxUSE_WAVE