]>
git.saurik.com Git - wxWidgets.git/blob - samples/joytest/joytest.h
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
,
44 const wxPoint
& pos
, const wxSize
& size
, const long style
);
46 void OnActivate(wxActivateEvent
& event
);
47 void OnQuit(wxCommandEvent
& event
);
52 #define JOYTEST_QUIT 1