]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/joytest/joytest.cpp
show wxUSE_STL in the summary at the end too
[wxWidgets.git] / samples / joytest / joytest.cpp
index 65ca2e196c0b1e805f62bbc48ba77f8803f91d25..0da7193b519d8c94ec0a9b4bdad5e1d69a552e8e 100644 (file)
@@ -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())
     {