]>
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
27 class MyCanvas
: public wxScrolledWindow
30 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
);
32 void OnJoystickEvent(wxJoystickEvent
& event
);
37 class MyFrame
: public wxFrame
41 MyFrame(wxFrame
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, const long style
);
43 void OnActivate(wxActivateEvent
& event
);
44 void OnQuit(wxCommandEvent
& event
);
49 #define JOYTEST_QUIT 1
50 #define JOYTEST_ABOUT 2