/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/unix/joystick.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/unix/joystick.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 11 months ago) by william
File MIME type: text/plain
File size: 2698 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/joystick.h
3 // Purpose: wxJoystick class
4 // Author: Guilhem Lavaux
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id: joystick.h 42077 2006-10-17 14:44:52Z ABX $
8 // Copyright: (c) Guilhem Lavaux
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __JOYSTICKH__
13 #define __JOYSTICKH__
14
15 #include "wx/event.h"
16 #include "wx/thread.h"
17
18 class WXDLLEXPORT wxJoystickThread;
19
20 class WXDLLEXPORT wxJoystick: public wxObject
21 {
22 DECLARE_DYNAMIC_CLASS(wxJoystick)
23 public:
24 /*
25 * Public interface
26 */
27
28 wxJoystick(int joystick = wxJOYSTICK1);
29 virtual ~wxJoystick();
30
31 // Attributes
32 ////////////////////////////////////////////////////////////////////////////
33
34 wxPoint GetPosition() const;
35 int GetZPosition() const;
36 int GetButtonState() const;
37 int GetPOVPosition() const;
38 int GetPOVCTSPosition() const;
39 int GetRudderPosition() const;
40 int GetUPosition() const;
41 int GetVPosition() const;
42 int GetMovementThreshold() const;
43 void SetMovementThreshold(int threshold) ;
44
45 // Capabilities
46 ////////////////////////////////////////////////////////////////////////////
47
48 bool IsOk() const; // Checks that the joystick is functioning
49 static int GetNumberJoysticks() ;
50 int GetManufacturerId() const ;
51 int GetProductId() const ;
52 wxString GetProductName() const ;
53 int GetXMin() const;
54 int GetYMin() const;
55 int GetZMin() const;
56 int GetXMax() const;
57 int GetYMax() const;
58 int GetZMax() const;
59 int GetNumberButtons() const;
60 int GetNumberAxes() const;
61 int GetMaxButtons() const;
62 int GetMaxAxes() const;
63 int GetPollingMin() const;
64 int GetPollingMax() const;
65 int GetRudderMin() const;
66 int GetRudderMax() const;
67 int GetUMin() const;
68 int GetUMax() const;
69 int GetVMin() const;
70 int GetVMax() const;
71
72 bool HasRudder() const;
73 bool HasZ() const;
74 bool HasU() const;
75 bool HasV() const;
76 bool HasPOV() const;
77 bool HasPOV4Dir() const;
78 bool HasPOVCTS() const;
79
80 // Operations
81 ////////////////////////////////////////////////////////////////////////////
82
83 // pollingFreq = 0 means that movement events are sent when above the threshold.
84 // If pollingFreq > 0, events are received every this many milliseconds.
85 bool SetCapture(wxWindow* win, int pollingFreq = 0);
86 bool ReleaseCapture();
87
88 protected:
89 int m_device;
90 int m_joystick;
91 wxJoystickThread* m_thread;
92 };
93
94 #endif
95 // __JOYSTICKH__

  ViewVC Help
Powered by ViewVC 1.1.22