]>
git.saurik.com Git - wxWidgets.git/blob - samples/joytest/joytest.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Joystick sample
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // Define a new application
12 class MyApp
: public wxApp
17 // Joystick max values
30 class MyCanvas
: public wxScrolledWindow
33 MyCanvas(wxWindow
*parent
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
);
35 void OnJoystickEvent(wxJoystickEvent
& event
);
41 class MyFrame
: public wxFrame
45 MyFrame(wxFrame
*parent
, const wxString
& title
,
46 const wxPoint
& pos
, const wxSize
& size
, const long style
);
48 void OnActivate(wxActivateEvent
& event
);
49 void OnQuit(wxCommandEvent
& event
);
54 #define JOYTEST_QUIT 1