]>
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
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
18 // Joystick max values
31 class MyCanvas
: public wxScrolledWindow
34 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
);
36 void OnJoystickEvent(wxJoystickEvent
& event
);
42 class MyFrame
: public wxFrame
46 MyFrame(wxFrame
*parent
, const wxString
& title
,
47 const wxPoint
& pos
, const wxSize
& size
, const long style
);
49 void OnActivate(wxActivateEvent
& event
);
50 void OnQuit(wxCommandEvent
& event
);
55 #define JOYTEST_QUIT 1