projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
include wx/arrstr.h as it's needed by wxImageHandler and may not be implicitly includ...
[wxWidgets.git]
/
samples
/
joytest
/
joytest.cpp
diff --git
a/samples/joytest/joytest.cpp
b/samples/joytest/joytest.cpp
index 65ca2e196c0b1e805f62bbc48ba77f8803f91d25..0da7193b519d8c94ec0a9b4bdad5e1d69a552e8e 100644
(file)
--- 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())
{