1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Joystick sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
18 // Joystick max values
29 class MyCanvas
: public wxScrolledWindow
32 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
);
34 void OnJoystickEvent(wxJoystickEvent
& event
);
39 class MyFrame
: public wxFrame
43 MyFrame(wxFrame
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, const long style
);
45 void OnActivate(wxActivateEvent
& event
);
46 void OnQuit(wxCommandEvent
& event
);
51 #define JOYTEST_QUIT 1
52 #define JOYTEST_ABOUT 2