X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da9e956384a0619a0ecaa0bd1e4ba26b133b60a9..d8331a013b9cd0109a3a6d3c4e7b60b0b524eb06:/samples/joytest/joytest.cpp?ds=sidebyside diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 65ca2e196c..0da7193b51 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -43,6 +43,9 @@ int nButtons = 0; // Initialise this in OnInit, not statically bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + wxJoystick stick(wxJOYSTICK1); if (!stick.IsOk()) {