]> git.saurik.com Git - wxWidgets.git/blame - samples/joytest/joytest.h
removed erroneous return type from a membersection (patch 905562)
[wxWidgets.git] / samples / joytest / joytest.h
CommitLineData
bbf1f0e5
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: joytest.cpp
3// Purpose: Joystick sample
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
6aa89a22 8// Copyright: (c) Julian Smart
2f6c54eb 9// Licence: wxWindows license
bbf1f0e5
KB
10/////////////////////////////////////////////////////////////////////////////
11
12// Define a new application
13class MyApp: public wxApp
14{
aec18ff7
MB
15public:
16 bool OnInit();
bbf1f0e5
KB
17
18 // Joystick max values
19 int m_maxX;
20 int m_maxY;
21
d93966b9
VS
22#if wxUSE_SOUND
23 wxSound m_fire;
24#endif // wxUSE_SOUND
bbf1f0e5
KB
25};
26
27DECLARE_APP(MyApp)
28
29class MyCanvas: public wxScrolledWindow
30{
aec18ff7 31public:
bbf1f0e5 32 MyCanvas(wxWindow *parent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
aec18ff7 33 ~MyCanvas();
bbf1f0e5
KB
34 void OnJoystickEvent(wxJoystickEvent& event);
35
36 DECLARE_EVENT_TABLE()
37};
38
39class MyFrame: public wxFrame
40{
aec18ff7 41public:
bbf1f0e5 42 MyCanvas *canvas;
aec18ff7
MB
43 MyFrame(wxFrame *parent, const wxString& title,
44 const wxPoint& pos, const wxSize& size, const long style);
45 ~MyFrame();
bbf1f0e5
KB
46 void OnActivate(wxActivateEvent& event);
47 void OnQuit(wxCommandEvent& event);
48
49DECLARE_EVENT_TABLE()
50};
51
52#define JOYTEST_QUIT 1