]> git.saurik.com Git - wxWidgets.git/blob - samples/joytest/joytest.h
Define __VISUALC__ for ICC under Windows again.
[wxWidgets.git] / samples / joytest / joytest.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: joytest.cpp
3 // Purpose: Joystick sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // Define a new application
12 class MyApp: public wxApp
13 {
14 public:
15 bool OnInit();
16
17 // Joystick max values
18 int m_minX;
19 int m_minY;
20 int m_maxX;
21 int m_maxY;
22
23 #if wxUSE_SOUND
24 wxSound m_fire;
25 #endif // wxUSE_SOUND
26 };
27
28 DECLARE_APP(MyApp)
29
30 class MyCanvas: public wxScrolledWindow
31 {
32 public:
33 MyCanvas(wxWindow *parent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
34 ~MyCanvas();
35 void OnJoystickEvent(wxJoystickEvent& event);
36
37 wxJoystick* m_stick;
38 DECLARE_EVENT_TABLE()
39 };
40
41 class MyFrame: public wxFrame
42 {
43 public:
44 MyCanvas *canvas;
45 MyFrame(wxFrame *parent, const wxString& title,
46 const wxPoint& pos, const wxSize& size, const long style);
47 ~MyFrame(){};
48 void OnActivate(wxActivateEvent& event);
49 void OnQuit(wxCommandEvent& event);
50
51 DECLARE_EVENT_TABLE()
52 };
53
54 #define JOYTEST_QUIT 1