1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.16
5  *
6  *     Copyright: (c) 2018 by Total Control Software
7  *     License:   wxWindows License
8  */
9 
10 #include "sipAPI_adv.h"
11 
12         #include <wx/joystick.h>
13 
14         #include <wx/window.h>
15         #include <wx/gdicmn.h>
16         #include <wx/object.h>
17         #include <wx/object.h>
18         #include <wx/object.h>
19 
20 
21 class sipwxJoystick : public  ::wxJoystick
22 {
23 public:
24     sipwxJoystick(int);
25     sipwxJoystick(const  ::wxJoystick&);
26     ~sipwxJoystick();
27 
28 public:
29     sipSimpleWrapper *sipPySelf;
30 
31 private:
32     sipwxJoystick(const sipwxJoystick &);
33     sipwxJoystick &operator = (const sipwxJoystick &);
34 };
35 
sipwxJoystick(int joystick)36 sipwxJoystick::sipwxJoystick(int joystick):  ::wxJoystick(joystick), sipPySelf(SIP_NULLPTR)
37 {
38 }
39 
sipwxJoystick(const::wxJoystick & a0)40 sipwxJoystick::sipwxJoystick(const  ::wxJoystick& a0):  ::wxJoystick(a0), sipPySelf(SIP_NULLPTR)
41 {
42 }
43 
~sipwxJoystick()44 sipwxJoystick::~sipwxJoystick()
45 {
46     sipInstanceDestroyedEx(&sipPySelf);
47 }
48 
49 
50 PyDoc_STRVAR(doc_wxJoystick_GetButtonState, "GetButtonState() -> int\n"
51 "GetButtonState(id) -> bool\n"
52 "\n"
53 "Returns the state of the joystick buttons.\n"
54 "");
55 
56 extern "C" {static PyObject *meth_wxJoystick_GetButtonState(PyObject *, PyObject *, PyObject *);}
meth_wxJoystick_GetButtonState(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)57 static PyObject *meth_wxJoystick_GetButtonState(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
58 {
59     PyObject *sipParseErr = SIP_NULLPTR;
60 
61     {
62         const  ::wxJoystick *sipCpp;
63 
64         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
65         {
66             int sipRes;
67 
68             PyErr_Clear();
69 
70             Py_BEGIN_ALLOW_THREADS
71             sipRes = sipCpp->GetButtonState();
72             Py_END_ALLOW_THREADS
73 
74             if (PyErr_Occurred())
75                 return 0;
76 
77             return SIPLong_FromLong(sipRes);
78         }
79     }
80 
81     {
82         uint id;
83         const  ::wxJoystick *sipCpp;
84 
85         static const char *sipKwdList[] = {
86             sipName_id,
87         };
88 
89         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu", &sipSelf, sipType_wxJoystick, &sipCpp, &id))
90         {
91             bool sipRes;
92 
93             PyErr_Clear();
94 
95             Py_BEGIN_ALLOW_THREADS
96             sipRes = sipCpp->GetButtonState(id);
97             Py_END_ALLOW_THREADS
98 
99             if (PyErr_Occurred())
100                 return 0;
101 
102             return PyBool_FromLong(sipRes);
103         }
104     }
105 
106     /* Raise an exception if the arguments couldn't be parsed. */
107     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetButtonState, SIP_NULLPTR);
108 
109     return SIP_NULLPTR;
110 }
111 
112 
113 PyDoc_STRVAR(doc_wxJoystick_GetManufacturerId, "GetManufacturerId() -> int\n"
114 "\n"
115 "Returns the manufacturer id.");
116 
117 extern "C" {static PyObject *meth_wxJoystick_GetManufacturerId(PyObject *, PyObject *);}
meth_wxJoystick_GetManufacturerId(PyObject * sipSelf,PyObject * sipArgs)118 static PyObject *meth_wxJoystick_GetManufacturerId(PyObject *sipSelf, PyObject *sipArgs)
119 {
120     PyObject *sipParseErr = SIP_NULLPTR;
121 
122     {
123         const  ::wxJoystick *sipCpp;
124 
125         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
126         {
127             int sipRes;
128 
129             PyErr_Clear();
130 
131             Py_BEGIN_ALLOW_THREADS
132             sipRes = sipCpp->GetManufacturerId();
133             Py_END_ALLOW_THREADS
134 
135             if (PyErr_Occurred())
136                 return 0;
137 
138             return SIPLong_FromLong(sipRes);
139         }
140     }
141 
142     /* Raise an exception if the arguments couldn't be parsed. */
143     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetManufacturerId, SIP_NULLPTR);
144 
145     return SIP_NULLPTR;
146 }
147 
148 
149 PyDoc_STRVAR(doc_wxJoystick_GetMovementThreshold, "GetMovementThreshold() -> int\n"
150 "\n"
151 "Returns the movement threshold, the number of steps outside which the\n"
152 "joystick is deemed to have moved.");
153 
154 extern "C" {static PyObject *meth_wxJoystick_GetMovementThreshold(PyObject *, PyObject *);}
meth_wxJoystick_GetMovementThreshold(PyObject * sipSelf,PyObject * sipArgs)155 static PyObject *meth_wxJoystick_GetMovementThreshold(PyObject *sipSelf, PyObject *sipArgs)
156 {
157     PyObject *sipParseErr = SIP_NULLPTR;
158 
159     {
160         const  ::wxJoystick *sipCpp;
161 
162         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
163         {
164             int sipRes;
165 
166             PyErr_Clear();
167 
168             Py_BEGIN_ALLOW_THREADS
169             sipRes = sipCpp->GetMovementThreshold();
170             Py_END_ALLOW_THREADS
171 
172             if (PyErr_Occurred())
173                 return 0;
174 
175             return SIPLong_FromLong(sipRes);
176         }
177     }
178 
179     /* Raise an exception if the arguments couldn't be parsed. */
180     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetMovementThreshold, SIP_NULLPTR);
181 
182     return SIP_NULLPTR;
183 }
184 
185 
186 PyDoc_STRVAR(doc_wxJoystick_GetNumberAxes, "GetNumberAxes() -> int\n"
187 "\n"
188 "Returns the number of axes for this joystick.");
189 
190 extern "C" {static PyObject *meth_wxJoystick_GetNumberAxes(PyObject *, PyObject *);}
meth_wxJoystick_GetNumberAxes(PyObject * sipSelf,PyObject * sipArgs)191 static PyObject *meth_wxJoystick_GetNumberAxes(PyObject *sipSelf, PyObject *sipArgs)
192 {
193     PyObject *sipParseErr = SIP_NULLPTR;
194 
195     {
196         const  ::wxJoystick *sipCpp;
197 
198         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
199         {
200             int sipRes;
201 
202             PyErr_Clear();
203 
204             Py_BEGIN_ALLOW_THREADS
205             sipRes = sipCpp->GetNumberAxes();
206             Py_END_ALLOW_THREADS
207 
208             if (PyErr_Occurred())
209                 return 0;
210 
211             return SIPLong_FromLong(sipRes);
212         }
213     }
214 
215     /* Raise an exception if the arguments couldn't be parsed. */
216     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetNumberAxes, SIP_NULLPTR);
217 
218     return SIP_NULLPTR;
219 }
220 
221 
222 PyDoc_STRVAR(doc_wxJoystick_GetNumberButtons, "GetNumberButtons() -> int\n"
223 "\n"
224 "Returns the number of buttons for this joystick.");
225 
226 extern "C" {static PyObject *meth_wxJoystick_GetNumberButtons(PyObject *, PyObject *);}
meth_wxJoystick_GetNumberButtons(PyObject * sipSelf,PyObject * sipArgs)227 static PyObject *meth_wxJoystick_GetNumberButtons(PyObject *sipSelf, PyObject *sipArgs)
228 {
229     PyObject *sipParseErr = SIP_NULLPTR;
230 
231     {
232         const  ::wxJoystick *sipCpp;
233 
234         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
235         {
236             int sipRes;
237 
238             PyErr_Clear();
239 
240             Py_BEGIN_ALLOW_THREADS
241             sipRes = sipCpp->GetNumberButtons();
242             Py_END_ALLOW_THREADS
243 
244             if (PyErr_Occurred())
245                 return 0;
246 
247             return SIPLong_FromLong(sipRes);
248         }
249     }
250 
251     /* Raise an exception if the arguments couldn't be parsed. */
252     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetNumberButtons, SIP_NULLPTR);
253 
254     return SIP_NULLPTR;
255 }
256 
257 
258 PyDoc_STRVAR(doc_wxJoystick_GetPOVCTSPosition, "GetPOVCTSPosition() -> int\n"
259 "\n"
260 "Returns the point-of-view position, expressed in continuous, one-\n"
261 "hundredth of a degree units.");
262 
263 extern "C" {static PyObject *meth_wxJoystick_GetPOVCTSPosition(PyObject *, PyObject *);}
meth_wxJoystick_GetPOVCTSPosition(PyObject * sipSelf,PyObject * sipArgs)264 static PyObject *meth_wxJoystick_GetPOVCTSPosition(PyObject *sipSelf, PyObject *sipArgs)
265 {
266     PyObject *sipParseErr = SIP_NULLPTR;
267 
268     {
269         const  ::wxJoystick *sipCpp;
270 
271         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
272         {
273             int sipRes;
274 
275             PyErr_Clear();
276 
277             Py_BEGIN_ALLOW_THREADS
278             sipRes = sipCpp->GetPOVCTSPosition();
279             Py_END_ALLOW_THREADS
280 
281             if (PyErr_Occurred())
282                 return 0;
283 
284             return SIPLong_FromLong(sipRes);
285         }
286     }
287 
288     /* Raise an exception if the arguments couldn't be parsed. */
289     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetPOVCTSPosition, SIP_NULLPTR);
290 
291     return SIP_NULLPTR;
292 }
293 
294 
295 PyDoc_STRVAR(doc_wxJoystick_GetPOVPosition, "GetPOVPosition() -> int\n"
296 "\n"
297 "Returns the point-of-view position, expressed in continuous, one-\n"
298 "hundredth of a degree units, but limited to return 0, 9000, 18000 or\n"
299 "27000.");
300 
301 extern "C" {static PyObject *meth_wxJoystick_GetPOVPosition(PyObject *, PyObject *);}
meth_wxJoystick_GetPOVPosition(PyObject * sipSelf,PyObject * sipArgs)302 static PyObject *meth_wxJoystick_GetPOVPosition(PyObject *sipSelf, PyObject *sipArgs)
303 {
304     PyObject *sipParseErr = SIP_NULLPTR;
305 
306     {
307         const  ::wxJoystick *sipCpp;
308 
309         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
310         {
311             int sipRes;
312 
313             PyErr_Clear();
314 
315             Py_BEGIN_ALLOW_THREADS
316             sipRes = sipCpp->GetPOVPosition();
317             Py_END_ALLOW_THREADS
318 
319             if (PyErr_Occurred())
320                 return 0;
321 
322             return SIPLong_FromLong(sipRes);
323         }
324     }
325 
326     /* Raise an exception if the arguments couldn't be parsed. */
327     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetPOVPosition, SIP_NULLPTR);
328 
329     return SIP_NULLPTR;
330 }
331 
332 
333 PyDoc_STRVAR(doc_wxJoystick_GetPollingMax, "GetPollingMax() -> int\n"
334 "\n"
335 "Returns the maximum polling frequency.");
336 
337 extern "C" {static PyObject *meth_wxJoystick_GetPollingMax(PyObject *, PyObject *);}
meth_wxJoystick_GetPollingMax(PyObject * sipSelf,PyObject * sipArgs)338 static PyObject *meth_wxJoystick_GetPollingMax(PyObject *sipSelf, PyObject *sipArgs)
339 {
340     PyObject *sipParseErr = SIP_NULLPTR;
341 
342     {
343         const  ::wxJoystick *sipCpp;
344 
345         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
346         {
347             int sipRes;
348 
349             PyErr_Clear();
350 
351             Py_BEGIN_ALLOW_THREADS
352             sipRes = sipCpp->GetPollingMax();
353             Py_END_ALLOW_THREADS
354 
355             if (PyErr_Occurred())
356                 return 0;
357 
358             return SIPLong_FromLong(sipRes);
359         }
360     }
361 
362     /* Raise an exception if the arguments couldn't be parsed. */
363     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetPollingMax, SIP_NULLPTR);
364 
365     return SIP_NULLPTR;
366 }
367 
368 
369 PyDoc_STRVAR(doc_wxJoystick_GetPollingMin, "GetPollingMin() -> int\n"
370 "\n"
371 "Returns the minimum polling frequency.");
372 
373 extern "C" {static PyObject *meth_wxJoystick_GetPollingMin(PyObject *, PyObject *);}
meth_wxJoystick_GetPollingMin(PyObject * sipSelf,PyObject * sipArgs)374 static PyObject *meth_wxJoystick_GetPollingMin(PyObject *sipSelf, PyObject *sipArgs)
375 {
376     PyObject *sipParseErr = SIP_NULLPTR;
377 
378     {
379         const  ::wxJoystick *sipCpp;
380 
381         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
382         {
383             int sipRes;
384 
385             PyErr_Clear();
386 
387             Py_BEGIN_ALLOW_THREADS
388             sipRes = sipCpp->GetPollingMin();
389             Py_END_ALLOW_THREADS
390 
391             if (PyErr_Occurred())
392                 return 0;
393 
394             return SIPLong_FromLong(sipRes);
395         }
396     }
397 
398     /* Raise an exception if the arguments couldn't be parsed. */
399     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetPollingMin, SIP_NULLPTR);
400 
401     return SIP_NULLPTR;
402 }
403 
404 
405 PyDoc_STRVAR(doc_wxJoystick_GetPosition, "GetPosition() -> wx.Point\n"
406 "GetPosition(axis) -> int\n"
407 "\n"
408 "Returns the x, y position of the joystick.\n"
409 "");
410 
411 extern "C" {static PyObject *meth_wxJoystick_GetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxJoystick_GetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)412 static PyObject *meth_wxJoystick_GetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
413 {
414     PyObject *sipParseErr = SIP_NULLPTR;
415 
416     {
417         const  ::wxJoystick *sipCpp;
418 
419         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
420         {
421              ::wxPoint*sipRes;
422 
423             PyErr_Clear();
424 
425             Py_BEGIN_ALLOW_THREADS
426             sipRes = new  ::wxPoint(sipCpp->GetPosition());
427             Py_END_ALLOW_THREADS
428 
429             if (PyErr_Occurred())
430                 return 0;
431 
432             return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
433         }
434     }
435 
436     {
437         uint axis;
438         const  ::wxJoystick *sipCpp;
439 
440         static const char *sipKwdList[] = {
441             sipName_axis,
442         };
443 
444         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu", &sipSelf, sipType_wxJoystick, &sipCpp, &axis))
445         {
446             int sipRes;
447 
448             PyErr_Clear();
449 
450             Py_BEGIN_ALLOW_THREADS
451             sipRes = sipCpp->GetPosition(axis);
452             Py_END_ALLOW_THREADS
453 
454             if (PyErr_Occurred())
455                 return 0;
456 
457             return SIPLong_FromLong(sipRes);
458         }
459     }
460 
461     /* Raise an exception if the arguments couldn't be parsed. */
462     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetPosition, SIP_NULLPTR);
463 
464     return SIP_NULLPTR;
465 }
466 
467 
468 PyDoc_STRVAR(doc_wxJoystick_GetProductId, "GetProductId() -> int\n"
469 "\n"
470 "Returns the product id for the joystick.");
471 
472 extern "C" {static PyObject *meth_wxJoystick_GetProductId(PyObject *, PyObject *);}
meth_wxJoystick_GetProductId(PyObject * sipSelf,PyObject * sipArgs)473 static PyObject *meth_wxJoystick_GetProductId(PyObject *sipSelf, PyObject *sipArgs)
474 {
475     PyObject *sipParseErr = SIP_NULLPTR;
476 
477     {
478         const  ::wxJoystick *sipCpp;
479 
480         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
481         {
482             int sipRes;
483 
484             PyErr_Clear();
485 
486             Py_BEGIN_ALLOW_THREADS
487             sipRes = sipCpp->GetProductId();
488             Py_END_ALLOW_THREADS
489 
490             if (PyErr_Occurred())
491                 return 0;
492 
493             return SIPLong_FromLong(sipRes);
494         }
495     }
496 
497     /* Raise an exception if the arguments couldn't be parsed. */
498     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetProductId, SIP_NULLPTR);
499 
500     return SIP_NULLPTR;
501 }
502 
503 
504 PyDoc_STRVAR(doc_wxJoystick_GetProductName, "GetProductName() -> String\n"
505 "\n"
506 "Returns the product name for the joystick.");
507 
508 extern "C" {static PyObject *meth_wxJoystick_GetProductName(PyObject *, PyObject *);}
meth_wxJoystick_GetProductName(PyObject * sipSelf,PyObject * sipArgs)509 static PyObject *meth_wxJoystick_GetProductName(PyObject *sipSelf, PyObject *sipArgs)
510 {
511     PyObject *sipParseErr = SIP_NULLPTR;
512 
513     {
514         const  ::wxJoystick *sipCpp;
515 
516         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
517         {
518              ::wxString*sipRes;
519 
520             PyErr_Clear();
521 
522             Py_BEGIN_ALLOW_THREADS
523             sipRes = new  ::wxString(sipCpp->GetProductName());
524             Py_END_ALLOW_THREADS
525 
526             if (PyErr_Occurred())
527                 return 0;
528 
529             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
530         }
531     }
532 
533     /* Raise an exception if the arguments couldn't be parsed. */
534     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetProductName, SIP_NULLPTR);
535 
536     return SIP_NULLPTR;
537 }
538 
539 
540 PyDoc_STRVAR(doc_wxJoystick_GetRudderMax, "GetRudderMax() -> int\n"
541 "\n"
542 "Returns the maximum rudder position.");
543 
544 extern "C" {static PyObject *meth_wxJoystick_GetRudderMax(PyObject *, PyObject *);}
meth_wxJoystick_GetRudderMax(PyObject * sipSelf,PyObject * sipArgs)545 static PyObject *meth_wxJoystick_GetRudderMax(PyObject *sipSelf, PyObject *sipArgs)
546 {
547     PyObject *sipParseErr = SIP_NULLPTR;
548 
549     {
550         const  ::wxJoystick *sipCpp;
551 
552         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
553         {
554             int sipRes;
555 
556             PyErr_Clear();
557 
558             Py_BEGIN_ALLOW_THREADS
559             sipRes = sipCpp->GetRudderMax();
560             Py_END_ALLOW_THREADS
561 
562             if (PyErr_Occurred())
563                 return 0;
564 
565             return SIPLong_FromLong(sipRes);
566         }
567     }
568 
569     /* Raise an exception if the arguments couldn't be parsed. */
570     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetRudderMax, SIP_NULLPTR);
571 
572     return SIP_NULLPTR;
573 }
574 
575 
576 PyDoc_STRVAR(doc_wxJoystick_GetRudderMin, "GetRudderMin() -> int\n"
577 "\n"
578 "Returns the minimum rudder position.");
579 
580 extern "C" {static PyObject *meth_wxJoystick_GetRudderMin(PyObject *, PyObject *);}
meth_wxJoystick_GetRudderMin(PyObject * sipSelf,PyObject * sipArgs)581 static PyObject *meth_wxJoystick_GetRudderMin(PyObject *sipSelf, PyObject *sipArgs)
582 {
583     PyObject *sipParseErr = SIP_NULLPTR;
584 
585     {
586         const  ::wxJoystick *sipCpp;
587 
588         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
589         {
590             int sipRes;
591 
592             PyErr_Clear();
593 
594             Py_BEGIN_ALLOW_THREADS
595             sipRes = sipCpp->GetRudderMin();
596             Py_END_ALLOW_THREADS
597 
598             if (PyErr_Occurred())
599                 return 0;
600 
601             return SIPLong_FromLong(sipRes);
602         }
603     }
604 
605     /* Raise an exception if the arguments couldn't be parsed. */
606     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetRudderMin, SIP_NULLPTR);
607 
608     return SIP_NULLPTR;
609 }
610 
611 
612 PyDoc_STRVAR(doc_wxJoystick_GetRudderPosition, "GetRudderPosition() -> int\n"
613 "\n"
614 "Returns the rudder position.");
615 
616 extern "C" {static PyObject *meth_wxJoystick_GetRudderPosition(PyObject *, PyObject *);}
meth_wxJoystick_GetRudderPosition(PyObject * sipSelf,PyObject * sipArgs)617 static PyObject *meth_wxJoystick_GetRudderPosition(PyObject *sipSelf, PyObject *sipArgs)
618 {
619     PyObject *sipParseErr = SIP_NULLPTR;
620 
621     {
622         const  ::wxJoystick *sipCpp;
623 
624         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
625         {
626             int sipRes;
627 
628             PyErr_Clear();
629 
630             Py_BEGIN_ALLOW_THREADS
631             sipRes = sipCpp->GetRudderPosition();
632             Py_END_ALLOW_THREADS
633 
634             if (PyErr_Occurred())
635                 return 0;
636 
637             return SIPLong_FromLong(sipRes);
638         }
639     }
640 
641     /* Raise an exception if the arguments couldn't be parsed. */
642     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetRudderPosition, SIP_NULLPTR);
643 
644     return SIP_NULLPTR;
645 }
646 
647 
648 PyDoc_STRVAR(doc_wxJoystick_GetUMax, "GetUMax() -> int\n"
649 "\n"
650 "Returns the maximum U position.");
651 
652 extern "C" {static PyObject *meth_wxJoystick_GetUMax(PyObject *, PyObject *);}
meth_wxJoystick_GetUMax(PyObject * sipSelf,PyObject * sipArgs)653 static PyObject *meth_wxJoystick_GetUMax(PyObject *sipSelf, PyObject *sipArgs)
654 {
655     PyObject *sipParseErr = SIP_NULLPTR;
656 
657     {
658         const  ::wxJoystick *sipCpp;
659 
660         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
661         {
662             int sipRes;
663 
664             PyErr_Clear();
665 
666             Py_BEGIN_ALLOW_THREADS
667             sipRes = sipCpp->GetUMax();
668             Py_END_ALLOW_THREADS
669 
670             if (PyErr_Occurred())
671                 return 0;
672 
673             return SIPLong_FromLong(sipRes);
674         }
675     }
676 
677     /* Raise an exception if the arguments couldn't be parsed. */
678     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetUMax, SIP_NULLPTR);
679 
680     return SIP_NULLPTR;
681 }
682 
683 
684 PyDoc_STRVAR(doc_wxJoystick_GetUMin, "GetUMin() -> int\n"
685 "\n"
686 "Returns the minimum U position.");
687 
688 extern "C" {static PyObject *meth_wxJoystick_GetUMin(PyObject *, PyObject *);}
meth_wxJoystick_GetUMin(PyObject * sipSelf,PyObject * sipArgs)689 static PyObject *meth_wxJoystick_GetUMin(PyObject *sipSelf, PyObject *sipArgs)
690 {
691     PyObject *sipParseErr = SIP_NULLPTR;
692 
693     {
694         const  ::wxJoystick *sipCpp;
695 
696         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
697         {
698             int sipRes;
699 
700             PyErr_Clear();
701 
702             Py_BEGIN_ALLOW_THREADS
703             sipRes = sipCpp->GetUMin();
704             Py_END_ALLOW_THREADS
705 
706             if (PyErr_Occurred())
707                 return 0;
708 
709             return SIPLong_FromLong(sipRes);
710         }
711     }
712 
713     /* Raise an exception if the arguments couldn't be parsed. */
714     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetUMin, SIP_NULLPTR);
715 
716     return SIP_NULLPTR;
717 }
718 
719 
720 PyDoc_STRVAR(doc_wxJoystick_GetUPosition, "GetUPosition() -> int\n"
721 "\n"
722 "Gets the position of the fifth axis of the joystick, if it exists.");
723 
724 extern "C" {static PyObject *meth_wxJoystick_GetUPosition(PyObject *, PyObject *);}
meth_wxJoystick_GetUPosition(PyObject * sipSelf,PyObject * sipArgs)725 static PyObject *meth_wxJoystick_GetUPosition(PyObject *sipSelf, PyObject *sipArgs)
726 {
727     PyObject *sipParseErr = SIP_NULLPTR;
728 
729     {
730         const  ::wxJoystick *sipCpp;
731 
732         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
733         {
734             int sipRes;
735 
736             PyErr_Clear();
737 
738             Py_BEGIN_ALLOW_THREADS
739             sipRes = sipCpp->GetUPosition();
740             Py_END_ALLOW_THREADS
741 
742             if (PyErr_Occurred())
743                 return 0;
744 
745             return SIPLong_FromLong(sipRes);
746         }
747     }
748 
749     /* Raise an exception if the arguments couldn't be parsed. */
750     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetUPosition, SIP_NULLPTR);
751 
752     return SIP_NULLPTR;
753 }
754 
755 
756 PyDoc_STRVAR(doc_wxJoystick_GetVMax, "GetVMax() -> int\n"
757 "\n"
758 "Returns the maximum V position.");
759 
760 extern "C" {static PyObject *meth_wxJoystick_GetVMax(PyObject *, PyObject *);}
meth_wxJoystick_GetVMax(PyObject * sipSelf,PyObject * sipArgs)761 static PyObject *meth_wxJoystick_GetVMax(PyObject *sipSelf, PyObject *sipArgs)
762 {
763     PyObject *sipParseErr = SIP_NULLPTR;
764 
765     {
766         const  ::wxJoystick *sipCpp;
767 
768         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
769         {
770             int sipRes;
771 
772             PyErr_Clear();
773 
774             Py_BEGIN_ALLOW_THREADS
775             sipRes = sipCpp->GetVMax();
776             Py_END_ALLOW_THREADS
777 
778             if (PyErr_Occurred())
779                 return 0;
780 
781             return SIPLong_FromLong(sipRes);
782         }
783     }
784 
785     /* Raise an exception if the arguments couldn't be parsed. */
786     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetVMax, SIP_NULLPTR);
787 
788     return SIP_NULLPTR;
789 }
790 
791 
792 PyDoc_STRVAR(doc_wxJoystick_GetVMin, "GetVMin() -> int\n"
793 "\n"
794 "Returns the minimum V position.");
795 
796 extern "C" {static PyObject *meth_wxJoystick_GetVMin(PyObject *, PyObject *);}
meth_wxJoystick_GetVMin(PyObject * sipSelf,PyObject * sipArgs)797 static PyObject *meth_wxJoystick_GetVMin(PyObject *sipSelf, PyObject *sipArgs)
798 {
799     PyObject *sipParseErr = SIP_NULLPTR;
800 
801     {
802         const  ::wxJoystick *sipCpp;
803 
804         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
805         {
806             int sipRes;
807 
808             PyErr_Clear();
809 
810             Py_BEGIN_ALLOW_THREADS
811             sipRes = sipCpp->GetVMin();
812             Py_END_ALLOW_THREADS
813 
814             if (PyErr_Occurred())
815                 return 0;
816 
817             return SIPLong_FromLong(sipRes);
818         }
819     }
820 
821     /* Raise an exception if the arguments couldn't be parsed. */
822     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetVMin, SIP_NULLPTR);
823 
824     return SIP_NULLPTR;
825 }
826 
827 
828 PyDoc_STRVAR(doc_wxJoystick_GetVPosition, "GetVPosition() -> int\n"
829 "\n"
830 "Gets the position of the sixth axis of the joystick, if it exists.");
831 
832 extern "C" {static PyObject *meth_wxJoystick_GetVPosition(PyObject *, PyObject *);}
meth_wxJoystick_GetVPosition(PyObject * sipSelf,PyObject * sipArgs)833 static PyObject *meth_wxJoystick_GetVPosition(PyObject *sipSelf, PyObject *sipArgs)
834 {
835     PyObject *sipParseErr = SIP_NULLPTR;
836 
837     {
838         const  ::wxJoystick *sipCpp;
839 
840         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
841         {
842             int sipRes;
843 
844             PyErr_Clear();
845 
846             Py_BEGIN_ALLOW_THREADS
847             sipRes = sipCpp->GetVPosition();
848             Py_END_ALLOW_THREADS
849 
850             if (PyErr_Occurred())
851                 return 0;
852 
853             return SIPLong_FromLong(sipRes);
854         }
855     }
856 
857     /* Raise an exception if the arguments couldn't be parsed. */
858     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetVPosition, SIP_NULLPTR);
859 
860     return SIP_NULLPTR;
861 }
862 
863 
864 PyDoc_STRVAR(doc_wxJoystick_GetXMax, "GetXMax() -> int\n"
865 "\n"
866 "Returns the maximum x position.");
867 
868 extern "C" {static PyObject *meth_wxJoystick_GetXMax(PyObject *, PyObject *);}
meth_wxJoystick_GetXMax(PyObject * sipSelf,PyObject * sipArgs)869 static PyObject *meth_wxJoystick_GetXMax(PyObject *sipSelf, PyObject *sipArgs)
870 {
871     PyObject *sipParseErr = SIP_NULLPTR;
872 
873     {
874         const  ::wxJoystick *sipCpp;
875 
876         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
877         {
878             int sipRes;
879 
880             PyErr_Clear();
881 
882             Py_BEGIN_ALLOW_THREADS
883             sipRes = sipCpp->GetXMax();
884             Py_END_ALLOW_THREADS
885 
886             if (PyErr_Occurred())
887                 return 0;
888 
889             return SIPLong_FromLong(sipRes);
890         }
891     }
892 
893     /* Raise an exception if the arguments couldn't be parsed. */
894     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetXMax, SIP_NULLPTR);
895 
896     return SIP_NULLPTR;
897 }
898 
899 
900 PyDoc_STRVAR(doc_wxJoystick_GetXMin, "GetXMin() -> int\n"
901 "\n"
902 "Returns the minimum x position.");
903 
904 extern "C" {static PyObject *meth_wxJoystick_GetXMin(PyObject *, PyObject *);}
meth_wxJoystick_GetXMin(PyObject * sipSelf,PyObject * sipArgs)905 static PyObject *meth_wxJoystick_GetXMin(PyObject *sipSelf, PyObject *sipArgs)
906 {
907     PyObject *sipParseErr = SIP_NULLPTR;
908 
909     {
910         const  ::wxJoystick *sipCpp;
911 
912         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
913         {
914             int sipRes;
915 
916             PyErr_Clear();
917 
918             Py_BEGIN_ALLOW_THREADS
919             sipRes = sipCpp->GetXMin();
920             Py_END_ALLOW_THREADS
921 
922             if (PyErr_Occurred())
923                 return 0;
924 
925             return SIPLong_FromLong(sipRes);
926         }
927     }
928 
929     /* Raise an exception if the arguments couldn't be parsed. */
930     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetXMin, SIP_NULLPTR);
931 
932     return SIP_NULLPTR;
933 }
934 
935 
936 PyDoc_STRVAR(doc_wxJoystick_GetYMax, "GetYMax() -> int\n"
937 "\n"
938 "Returns the maximum y position.");
939 
940 extern "C" {static PyObject *meth_wxJoystick_GetYMax(PyObject *, PyObject *);}
meth_wxJoystick_GetYMax(PyObject * sipSelf,PyObject * sipArgs)941 static PyObject *meth_wxJoystick_GetYMax(PyObject *sipSelf, PyObject *sipArgs)
942 {
943     PyObject *sipParseErr = SIP_NULLPTR;
944 
945     {
946         const  ::wxJoystick *sipCpp;
947 
948         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
949         {
950             int sipRes;
951 
952             PyErr_Clear();
953 
954             Py_BEGIN_ALLOW_THREADS
955             sipRes = sipCpp->GetYMax();
956             Py_END_ALLOW_THREADS
957 
958             if (PyErr_Occurred())
959                 return 0;
960 
961             return SIPLong_FromLong(sipRes);
962         }
963     }
964 
965     /* Raise an exception if the arguments couldn't be parsed. */
966     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetYMax, SIP_NULLPTR);
967 
968     return SIP_NULLPTR;
969 }
970 
971 
972 PyDoc_STRVAR(doc_wxJoystick_GetYMin, "GetYMin() -> int\n"
973 "\n"
974 "Returns the minimum y position.");
975 
976 extern "C" {static PyObject *meth_wxJoystick_GetYMin(PyObject *, PyObject *);}
meth_wxJoystick_GetYMin(PyObject * sipSelf,PyObject * sipArgs)977 static PyObject *meth_wxJoystick_GetYMin(PyObject *sipSelf, PyObject *sipArgs)
978 {
979     PyObject *sipParseErr = SIP_NULLPTR;
980 
981     {
982         const  ::wxJoystick *sipCpp;
983 
984         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
985         {
986             int sipRes;
987 
988             PyErr_Clear();
989 
990             Py_BEGIN_ALLOW_THREADS
991             sipRes = sipCpp->GetYMin();
992             Py_END_ALLOW_THREADS
993 
994             if (PyErr_Occurred())
995                 return 0;
996 
997             return SIPLong_FromLong(sipRes);
998         }
999     }
1000 
1001     /* Raise an exception if the arguments couldn't be parsed. */
1002     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetYMin, SIP_NULLPTR);
1003 
1004     return SIP_NULLPTR;
1005 }
1006 
1007 
1008 PyDoc_STRVAR(doc_wxJoystick_GetZMax, "GetZMax() -> int\n"
1009 "\n"
1010 "Returns the maximum z position.");
1011 
1012 extern "C" {static PyObject *meth_wxJoystick_GetZMax(PyObject *, PyObject *);}
meth_wxJoystick_GetZMax(PyObject * sipSelf,PyObject * sipArgs)1013 static PyObject *meth_wxJoystick_GetZMax(PyObject *sipSelf, PyObject *sipArgs)
1014 {
1015     PyObject *sipParseErr = SIP_NULLPTR;
1016 
1017     {
1018         const  ::wxJoystick *sipCpp;
1019 
1020         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1021         {
1022             int sipRes;
1023 
1024             PyErr_Clear();
1025 
1026             Py_BEGIN_ALLOW_THREADS
1027             sipRes = sipCpp->GetZMax();
1028             Py_END_ALLOW_THREADS
1029 
1030             if (PyErr_Occurred())
1031                 return 0;
1032 
1033             return SIPLong_FromLong(sipRes);
1034         }
1035     }
1036 
1037     /* Raise an exception if the arguments couldn't be parsed. */
1038     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetZMax, SIP_NULLPTR);
1039 
1040     return SIP_NULLPTR;
1041 }
1042 
1043 
1044 PyDoc_STRVAR(doc_wxJoystick_GetZMin, "GetZMin() -> int\n"
1045 "\n"
1046 "Returns the minimum z position.");
1047 
1048 extern "C" {static PyObject *meth_wxJoystick_GetZMin(PyObject *, PyObject *);}
meth_wxJoystick_GetZMin(PyObject * sipSelf,PyObject * sipArgs)1049 static PyObject *meth_wxJoystick_GetZMin(PyObject *sipSelf, PyObject *sipArgs)
1050 {
1051     PyObject *sipParseErr = SIP_NULLPTR;
1052 
1053     {
1054         const  ::wxJoystick *sipCpp;
1055 
1056         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1057         {
1058             int sipRes;
1059 
1060             PyErr_Clear();
1061 
1062             Py_BEGIN_ALLOW_THREADS
1063             sipRes = sipCpp->GetZMin();
1064             Py_END_ALLOW_THREADS
1065 
1066             if (PyErr_Occurred())
1067                 return 0;
1068 
1069             return SIPLong_FromLong(sipRes);
1070         }
1071     }
1072 
1073     /* Raise an exception if the arguments couldn't be parsed. */
1074     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetZMin, SIP_NULLPTR);
1075 
1076     return SIP_NULLPTR;
1077 }
1078 
1079 
1080 PyDoc_STRVAR(doc_wxJoystick_GetZPosition, "GetZPosition() -> int\n"
1081 "\n"
1082 "Returns the z position of the joystick.");
1083 
1084 extern "C" {static PyObject *meth_wxJoystick_GetZPosition(PyObject *, PyObject *);}
meth_wxJoystick_GetZPosition(PyObject * sipSelf,PyObject * sipArgs)1085 static PyObject *meth_wxJoystick_GetZPosition(PyObject *sipSelf, PyObject *sipArgs)
1086 {
1087     PyObject *sipParseErr = SIP_NULLPTR;
1088 
1089     {
1090         const  ::wxJoystick *sipCpp;
1091 
1092         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1093         {
1094             int sipRes;
1095 
1096             PyErr_Clear();
1097 
1098             Py_BEGIN_ALLOW_THREADS
1099             sipRes = sipCpp->GetZPosition();
1100             Py_END_ALLOW_THREADS
1101 
1102             if (PyErr_Occurred())
1103                 return 0;
1104 
1105             return SIPLong_FromLong(sipRes);
1106         }
1107     }
1108 
1109     /* Raise an exception if the arguments couldn't be parsed. */
1110     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetZPosition, SIP_NULLPTR);
1111 
1112     return SIP_NULLPTR;
1113 }
1114 
1115 
1116 PyDoc_STRVAR(doc_wxJoystick_HasPOV, "HasPOV() -> bool\n"
1117 "\n"
1118 "Returns true if the joystick has a point of view control.");
1119 
1120 extern "C" {static PyObject *meth_wxJoystick_HasPOV(PyObject *, PyObject *);}
meth_wxJoystick_HasPOV(PyObject * sipSelf,PyObject * sipArgs)1121 static PyObject *meth_wxJoystick_HasPOV(PyObject *sipSelf, PyObject *sipArgs)
1122 {
1123     PyObject *sipParseErr = SIP_NULLPTR;
1124 
1125     {
1126         const  ::wxJoystick *sipCpp;
1127 
1128         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1129         {
1130             bool sipRes;
1131 
1132             PyErr_Clear();
1133 
1134             Py_BEGIN_ALLOW_THREADS
1135             sipRes = sipCpp->HasPOV();
1136             Py_END_ALLOW_THREADS
1137 
1138             if (PyErr_Occurred())
1139                 return 0;
1140 
1141             return PyBool_FromLong(sipRes);
1142         }
1143     }
1144 
1145     /* Raise an exception if the arguments couldn't be parsed. */
1146     sipNoMethod(sipParseErr, sipName_Joystick, sipName_HasPOV, SIP_NULLPTR);
1147 
1148     return SIP_NULLPTR;
1149 }
1150 
1151 
1152 PyDoc_STRVAR(doc_wxJoystick_HasPOV4Dir, "HasPOV4Dir() -> bool\n"
1153 "\n"
1154 "Returns true if the joystick point-of-view supports discrete values\n"
1155 "(centered, forward, backward, left, and right).");
1156 
1157 extern "C" {static PyObject *meth_wxJoystick_HasPOV4Dir(PyObject *, PyObject *);}
meth_wxJoystick_HasPOV4Dir(PyObject * sipSelf,PyObject * sipArgs)1158 static PyObject *meth_wxJoystick_HasPOV4Dir(PyObject *sipSelf, PyObject *sipArgs)
1159 {
1160     PyObject *sipParseErr = SIP_NULLPTR;
1161 
1162     {
1163         const  ::wxJoystick *sipCpp;
1164 
1165         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1166         {
1167             bool sipRes;
1168 
1169             PyErr_Clear();
1170 
1171             Py_BEGIN_ALLOW_THREADS
1172             sipRes = sipCpp->HasPOV4Dir();
1173             Py_END_ALLOW_THREADS
1174 
1175             if (PyErr_Occurred())
1176                 return 0;
1177 
1178             return PyBool_FromLong(sipRes);
1179         }
1180     }
1181 
1182     /* Raise an exception if the arguments couldn't be parsed. */
1183     sipNoMethod(sipParseErr, sipName_Joystick, sipName_HasPOV4Dir, SIP_NULLPTR);
1184 
1185     return SIP_NULLPTR;
1186 }
1187 
1188 
1189 PyDoc_STRVAR(doc_wxJoystick_HasPOVCTS, "HasPOVCTS() -> bool\n"
1190 "\n"
1191 "Returns true if the joystick point-of-view supports continuous degree\n"
1192 "bearings.");
1193 
1194 extern "C" {static PyObject *meth_wxJoystick_HasPOVCTS(PyObject *, PyObject *);}
meth_wxJoystick_HasPOVCTS(PyObject * sipSelf,PyObject * sipArgs)1195 static PyObject *meth_wxJoystick_HasPOVCTS(PyObject *sipSelf, PyObject *sipArgs)
1196 {
1197     PyObject *sipParseErr = SIP_NULLPTR;
1198 
1199     {
1200         const  ::wxJoystick *sipCpp;
1201 
1202         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1203         {
1204             bool sipRes;
1205 
1206             PyErr_Clear();
1207 
1208             Py_BEGIN_ALLOW_THREADS
1209             sipRes = sipCpp->HasPOVCTS();
1210             Py_END_ALLOW_THREADS
1211 
1212             if (PyErr_Occurred())
1213                 return 0;
1214 
1215             return PyBool_FromLong(sipRes);
1216         }
1217     }
1218 
1219     /* Raise an exception if the arguments couldn't be parsed. */
1220     sipNoMethod(sipParseErr, sipName_Joystick, sipName_HasPOVCTS, SIP_NULLPTR);
1221 
1222     return SIP_NULLPTR;
1223 }
1224 
1225 
1226 PyDoc_STRVAR(doc_wxJoystick_HasRudder, "HasRudder() -> bool\n"
1227 "\n"
1228 "Returns true if there is a rudder attached to the computer.");
1229 
1230 extern "C" {static PyObject *meth_wxJoystick_HasRudder(PyObject *, PyObject *);}
meth_wxJoystick_HasRudder(PyObject * sipSelf,PyObject * sipArgs)1231 static PyObject *meth_wxJoystick_HasRudder(PyObject *sipSelf, PyObject *sipArgs)
1232 {
1233     PyObject *sipParseErr = SIP_NULLPTR;
1234 
1235     {
1236         const  ::wxJoystick *sipCpp;
1237 
1238         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1239         {
1240             bool sipRes;
1241 
1242             PyErr_Clear();
1243 
1244             Py_BEGIN_ALLOW_THREADS
1245             sipRes = sipCpp->HasRudder();
1246             Py_END_ALLOW_THREADS
1247 
1248             if (PyErr_Occurred())
1249                 return 0;
1250 
1251             return PyBool_FromLong(sipRes);
1252         }
1253     }
1254 
1255     /* Raise an exception if the arguments couldn't be parsed. */
1256     sipNoMethod(sipParseErr, sipName_Joystick, sipName_HasRudder, SIP_NULLPTR);
1257 
1258     return SIP_NULLPTR;
1259 }
1260 
1261 
1262 PyDoc_STRVAR(doc_wxJoystick_HasU, "HasU() -> bool\n"
1263 "\n"
1264 "Returns true if the joystick has a U axis.");
1265 
1266 extern "C" {static PyObject *meth_wxJoystick_HasU(PyObject *, PyObject *);}
meth_wxJoystick_HasU(PyObject * sipSelf,PyObject * sipArgs)1267 static PyObject *meth_wxJoystick_HasU(PyObject *sipSelf, PyObject *sipArgs)
1268 {
1269     PyObject *sipParseErr = SIP_NULLPTR;
1270 
1271     {
1272         const  ::wxJoystick *sipCpp;
1273 
1274         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1275         {
1276             bool sipRes;
1277 
1278             PyErr_Clear();
1279 
1280             Py_BEGIN_ALLOW_THREADS
1281             sipRes = sipCpp->HasU();
1282             Py_END_ALLOW_THREADS
1283 
1284             if (PyErr_Occurred())
1285                 return 0;
1286 
1287             return PyBool_FromLong(sipRes);
1288         }
1289     }
1290 
1291     /* Raise an exception if the arguments couldn't be parsed. */
1292     sipNoMethod(sipParseErr, sipName_Joystick, sipName_HasU, SIP_NULLPTR);
1293 
1294     return SIP_NULLPTR;
1295 }
1296 
1297 
1298 PyDoc_STRVAR(doc_wxJoystick_HasV, "HasV() -> bool\n"
1299 "\n"
1300 "Returns true if the joystick has a V axis.");
1301 
1302 extern "C" {static PyObject *meth_wxJoystick_HasV(PyObject *, PyObject *);}
meth_wxJoystick_HasV(PyObject * sipSelf,PyObject * sipArgs)1303 static PyObject *meth_wxJoystick_HasV(PyObject *sipSelf, PyObject *sipArgs)
1304 {
1305     PyObject *sipParseErr = SIP_NULLPTR;
1306 
1307     {
1308         const  ::wxJoystick *sipCpp;
1309 
1310         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1311         {
1312             bool sipRes;
1313 
1314             PyErr_Clear();
1315 
1316             Py_BEGIN_ALLOW_THREADS
1317             sipRes = sipCpp->HasV();
1318             Py_END_ALLOW_THREADS
1319 
1320             if (PyErr_Occurred())
1321                 return 0;
1322 
1323             return PyBool_FromLong(sipRes);
1324         }
1325     }
1326 
1327     /* Raise an exception if the arguments couldn't be parsed. */
1328     sipNoMethod(sipParseErr, sipName_Joystick, sipName_HasV, SIP_NULLPTR);
1329 
1330     return SIP_NULLPTR;
1331 }
1332 
1333 
1334 PyDoc_STRVAR(doc_wxJoystick_HasZ, "HasZ() -> bool\n"
1335 "\n"
1336 "Returns true if the joystick has a Z axis.");
1337 
1338 extern "C" {static PyObject *meth_wxJoystick_HasZ(PyObject *, PyObject *);}
meth_wxJoystick_HasZ(PyObject * sipSelf,PyObject * sipArgs)1339 static PyObject *meth_wxJoystick_HasZ(PyObject *sipSelf, PyObject *sipArgs)
1340 {
1341     PyObject *sipParseErr = SIP_NULLPTR;
1342 
1343     {
1344         const  ::wxJoystick *sipCpp;
1345 
1346         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1347         {
1348             bool sipRes;
1349 
1350             PyErr_Clear();
1351 
1352             Py_BEGIN_ALLOW_THREADS
1353             sipRes = sipCpp->HasZ();
1354             Py_END_ALLOW_THREADS
1355 
1356             if (PyErr_Occurred())
1357                 return 0;
1358 
1359             return PyBool_FromLong(sipRes);
1360         }
1361     }
1362 
1363     /* Raise an exception if the arguments couldn't be parsed. */
1364     sipNoMethod(sipParseErr, sipName_Joystick, sipName_HasZ, SIP_NULLPTR);
1365 
1366     return SIP_NULLPTR;
1367 }
1368 
1369 
1370 PyDoc_STRVAR(doc_wxJoystick_IsOk, "IsOk() -> bool\n"
1371 "\n"
1372 "Returns true if the joystick is functioning.");
1373 
1374 extern "C" {static PyObject *meth_wxJoystick_IsOk(PyObject *, PyObject *);}
meth_wxJoystick_IsOk(PyObject * sipSelf,PyObject * sipArgs)1375 static PyObject *meth_wxJoystick_IsOk(PyObject *sipSelf, PyObject *sipArgs)
1376 {
1377     PyObject *sipParseErr = SIP_NULLPTR;
1378 
1379     {
1380         const  ::wxJoystick *sipCpp;
1381 
1382         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1383         {
1384             bool sipRes;
1385 
1386             PyErr_Clear();
1387 
1388             Py_BEGIN_ALLOW_THREADS
1389             sipRes = sipCpp->IsOk();
1390             Py_END_ALLOW_THREADS
1391 
1392             if (PyErr_Occurred())
1393                 return 0;
1394 
1395             return PyBool_FromLong(sipRes);
1396         }
1397     }
1398 
1399     /* Raise an exception if the arguments couldn't be parsed. */
1400     sipNoMethod(sipParseErr, sipName_Joystick, sipName_IsOk, SIP_NULLPTR);
1401 
1402     return SIP_NULLPTR;
1403 }
1404 
1405 
1406 PyDoc_STRVAR(doc_wxJoystick_ReleaseCapture, "ReleaseCapture() -> bool\n"
1407 "\n"
1408 "Releases the capture set by SetCapture.");
1409 
1410 extern "C" {static PyObject *meth_wxJoystick_ReleaseCapture(PyObject *, PyObject *);}
meth_wxJoystick_ReleaseCapture(PyObject * sipSelf,PyObject * sipArgs)1411 static PyObject *meth_wxJoystick_ReleaseCapture(PyObject *sipSelf, PyObject *sipArgs)
1412 {
1413     PyObject *sipParseErr = SIP_NULLPTR;
1414 
1415     {
1416          ::wxJoystick *sipCpp;
1417 
1418         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1419         {
1420             bool sipRes;
1421 
1422             PyErr_Clear();
1423 
1424             Py_BEGIN_ALLOW_THREADS
1425             sipRes = sipCpp->ReleaseCapture();
1426             Py_END_ALLOW_THREADS
1427 
1428             if (PyErr_Occurred())
1429                 return 0;
1430 
1431             return PyBool_FromLong(sipRes);
1432         }
1433     }
1434 
1435     /* Raise an exception if the arguments couldn't be parsed. */
1436     sipNoMethod(sipParseErr, sipName_Joystick, sipName_ReleaseCapture, SIP_NULLPTR);
1437 
1438     return SIP_NULLPTR;
1439 }
1440 
1441 
1442 PyDoc_STRVAR(doc_wxJoystick_SetCapture, "SetCapture(win, pollingFreq=0) -> bool\n"
1443 "\n"
1444 "Sets the capture to direct joystick events to win.");
1445 
1446 extern "C" {static PyObject *meth_wxJoystick_SetCapture(PyObject *, PyObject *, PyObject *);}
meth_wxJoystick_SetCapture(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1447 static PyObject *meth_wxJoystick_SetCapture(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1448 {
1449     PyObject *sipParseErr = SIP_NULLPTR;
1450 
1451     {
1452          ::wxWindow* win;
1453         int pollingFreq = 0;
1454          ::wxJoystick *sipCpp;
1455 
1456         static const char *sipKwdList[] = {
1457             sipName_win,
1458             sipName_pollingFreq,
1459         };
1460 
1461         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|i", &sipSelf, sipType_wxJoystick, &sipCpp, sipType_wxWindow, &win, &pollingFreq))
1462         {
1463             bool sipRes;
1464 
1465             PyErr_Clear();
1466 
1467             Py_BEGIN_ALLOW_THREADS
1468             sipRes = sipCpp->SetCapture(win,pollingFreq);
1469             Py_END_ALLOW_THREADS
1470 
1471             if (PyErr_Occurred())
1472                 return 0;
1473 
1474             return PyBool_FromLong(sipRes);
1475         }
1476     }
1477 
1478     /* Raise an exception if the arguments couldn't be parsed. */
1479     sipNoMethod(sipParseErr, sipName_Joystick, sipName_SetCapture, SIP_NULLPTR);
1480 
1481     return SIP_NULLPTR;
1482 }
1483 
1484 
1485 PyDoc_STRVAR(doc_wxJoystick_SetMovementThreshold, "SetMovementThreshold(threshold)\n"
1486 "\n"
1487 "Sets the movement threshold, the number of steps outside which the\n"
1488 "joystick is deemed to have moved.");
1489 
1490 extern "C" {static PyObject *meth_wxJoystick_SetMovementThreshold(PyObject *, PyObject *, PyObject *);}
meth_wxJoystick_SetMovementThreshold(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1491 static PyObject *meth_wxJoystick_SetMovementThreshold(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1492 {
1493     PyObject *sipParseErr = SIP_NULLPTR;
1494 
1495     {
1496         int threshold;
1497          ::wxJoystick *sipCpp;
1498 
1499         static const char *sipKwdList[] = {
1500             sipName_threshold,
1501         };
1502 
1503         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxJoystick, &sipCpp, &threshold))
1504         {
1505             PyErr_Clear();
1506 
1507             Py_BEGIN_ALLOW_THREADS
1508             sipCpp->SetMovementThreshold(threshold);
1509             Py_END_ALLOW_THREADS
1510 
1511             if (PyErr_Occurred())
1512                 return 0;
1513 
1514             Py_INCREF(Py_None);
1515             return Py_None;
1516         }
1517     }
1518 
1519     /* Raise an exception if the arguments couldn't be parsed. */
1520     sipNoMethod(sipParseErr, sipName_Joystick, sipName_SetMovementThreshold, SIP_NULLPTR);
1521 
1522     return SIP_NULLPTR;
1523 }
1524 
1525 
1526 PyDoc_STRVAR(doc_wxJoystick_GetNumberJoysticks, "GetNumberJoysticks() -> int\n"
1527 "\n"
1528 "Returns the number of joysticks currently attached to the computer.");
1529 
1530 extern "C" {static PyObject *meth_wxJoystick_GetNumberJoysticks(PyObject *, PyObject *);}
meth_wxJoystick_GetNumberJoysticks(PyObject *,PyObject * sipArgs)1531 static PyObject *meth_wxJoystick_GetNumberJoysticks(PyObject *, PyObject *sipArgs)
1532 {
1533     PyObject *sipParseErr = SIP_NULLPTR;
1534 
1535     {
1536         if (sipParseArgs(&sipParseErr, sipArgs, ""))
1537         {
1538             int sipRes;
1539 
1540             PyErr_Clear();
1541 
1542             Py_BEGIN_ALLOW_THREADS
1543             sipRes =  ::wxJoystick::GetNumberJoysticks();
1544             Py_END_ALLOW_THREADS
1545 
1546             if (PyErr_Occurred())
1547                 return 0;
1548 
1549             return SIPLong_FromLong(sipRes);
1550         }
1551     }
1552 
1553     /* Raise an exception if the arguments couldn't be parsed. */
1554     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetNumberJoysticks, SIP_NULLPTR);
1555 
1556     return SIP_NULLPTR;
1557 }
1558 
1559 
1560 PyDoc_STRVAR(doc_wxJoystick_GetMaxButtons, "GetMaxButtons() -> int");
1561 
1562 extern "C" {static PyObject *meth_wxJoystick_GetMaxButtons(PyObject *, PyObject *);}
meth_wxJoystick_GetMaxButtons(PyObject * sipSelf,PyObject * sipArgs)1563 static PyObject *meth_wxJoystick_GetMaxButtons(PyObject *sipSelf, PyObject *sipArgs)
1564 {
1565     PyObject *sipParseErr = SIP_NULLPTR;
1566 
1567     {
1568         const  ::wxJoystick *sipCpp;
1569 
1570         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1571         {
1572             int sipRes;
1573 
1574             PyErr_Clear();
1575 
1576             Py_BEGIN_ALLOW_THREADS
1577             sipRes = sipCpp->GetMaxButtons();
1578             Py_END_ALLOW_THREADS
1579 
1580             if (PyErr_Occurred())
1581                 return 0;
1582 
1583             return SIPLong_FromLong(sipRes);
1584         }
1585     }
1586 
1587     /* Raise an exception if the arguments couldn't be parsed. */
1588     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetMaxButtons, SIP_NULLPTR);
1589 
1590     return SIP_NULLPTR;
1591 }
1592 
1593 
1594 PyDoc_STRVAR(doc_wxJoystick_GetMaxAxes, "GetMaxAxes() -> int");
1595 
1596 extern "C" {static PyObject *meth_wxJoystick_GetMaxAxes(PyObject *, PyObject *);}
meth_wxJoystick_GetMaxAxes(PyObject * sipSelf,PyObject * sipArgs)1597 static PyObject *meth_wxJoystick_GetMaxAxes(PyObject *sipSelf, PyObject *sipArgs)
1598 {
1599     PyObject *sipParseErr = SIP_NULLPTR;
1600 
1601     {
1602         const  ::wxJoystick *sipCpp;
1603 
1604         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxJoystick, &sipCpp))
1605         {
1606             int sipRes;
1607 
1608             PyErr_Clear();
1609 
1610             Py_BEGIN_ALLOW_THREADS
1611             sipRes = sipCpp->GetMaxAxes();
1612             Py_END_ALLOW_THREADS
1613 
1614             if (PyErr_Occurred())
1615                 return 0;
1616 
1617             return SIPLong_FromLong(sipRes);
1618         }
1619     }
1620 
1621     /* Raise an exception if the arguments couldn't be parsed. */
1622     sipNoMethod(sipParseErr, sipName_Joystick, sipName_GetMaxAxes, SIP_NULLPTR);
1623 
1624     return SIP_NULLPTR;
1625 }
1626 
1627 
1628 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1629 extern "C" {static void *cast_wxJoystick(void *, const sipTypeDef *);}
cast_wxJoystick(void * sipCppV,const sipTypeDef * targetType)1630 static void *cast_wxJoystick(void *sipCppV, const sipTypeDef *targetType)
1631 {
1632      ::wxJoystick *sipCpp = reinterpret_cast< ::wxJoystick *>(sipCppV);
1633 
1634     if (targetType == sipType_wxObject)
1635         return static_cast< ::wxObject *>(sipCpp);
1636 
1637     return sipCppV;
1638 }
1639 
1640 
1641 /* Call the instance's destructor. */
1642 extern "C" {static void release_wxJoystick(void *, int);}
release_wxJoystick(void * sipCppV,int sipState)1643 static void release_wxJoystick(void *sipCppV, int sipState)
1644 {
1645     Py_BEGIN_ALLOW_THREADS
1646 
1647     if (sipState & SIP_DERIVED_CLASS)
1648         delete reinterpret_cast<sipwxJoystick *>(sipCppV);
1649     else
1650         delete reinterpret_cast< ::wxJoystick *>(sipCppV);
1651 
1652     Py_END_ALLOW_THREADS
1653 }
1654 
1655 
1656 extern "C" {static void assign_wxJoystick(void *, SIP_SSIZE_T, void *);}
assign_wxJoystick(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)1657 static void assign_wxJoystick(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
1658 {
1659     reinterpret_cast< ::wxJoystick *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxJoystick *>(sipSrc);
1660 }
1661 
1662 
1663 extern "C" {static void *array_wxJoystick(SIP_SSIZE_T);}
array_wxJoystick(SIP_SSIZE_T sipNrElem)1664 static void *array_wxJoystick(SIP_SSIZE_T sipNrElem)
1665 {
1666     return new  ::wxJoystick[sipNrElem];
1667 }
1668 
1669 
1670 extern "C" {static void *copy_wxJoystick(const void *, SIP_SSIZE_T);}
copy_wxJoystick(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)1671 static void *copy_wxJoystick(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
1672 {
1673     return new  ::wxJoystick(reinterpret_cast<const  ::wxJoystick *>(sipSrc)[sipSrcIdx]);
1674 }
1675 
1676 
1677 extern "C" {static void dealloc_wxJoystick(sipSimpleWrapper *);}
dealloc_wxJoystick(sipSimpleWrapper * sipSelf)1678 static void dealloc_wxJoystick(sipSimpleWrapper *sipSelf)
1679 {
1680     if (sipIsDerivedClass(sipSelf))
1681         reinterpret_cast<sipwxJoystick *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1682 
1683     if (sipIsOwnedByPython(sipSelf))
1684     {
1685         release_wxJoystick(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1686     }
1687 }
1688 
1689 
1690 extern "C" {static void *init_type_wxJoystick(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxJoystick(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1691 static void *init_type_wxJoystick(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1692 {
1693     sipwxJoystick *sipCpp = SIP_NULLPTR;
1694 
1695     {
1696         int joystick = wxJOYSTICK1;
1697 
1698         static const char *sipKwdList[] = {
1699             sipName_joystick,
1700         };
1701 
1702         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|i", &joystick))
1703         {
1704 
1705         if (!wxPyCheckForApp()) return NULL;
1706 
1707             PyErr_Clear();
1708 
1709             Py_BEGIN_ALLOW_THREADS
1710             sipCpp = new sipwxJoystick(joystick);
1711             Py_END_ALLOW_THREADS
1712 
1713             if (PyErr_Occurred())
1714             {
1715                 delete sipCpp;
1716                 return SIP_NULLPTR;
1717             }
1718 
1719             sipCpp->sipPySelf = sipSelf;
1720 
1721             return sipCpp;
1722         }
1723     }
1724 
1725     {
1726         const  ::wxJoystick* a0;
1727 
1728         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxJoystick, &a0))
1729         {
1730             Py_BEGIN_ALLOW_THREADS
1731             sipCpp = new sipwxJoystick(*a0);
1732             Py_END_ALLOW_THREADS
1733 
1734             sipCpp->sipPySelf = sipSelf;
1735 
1736             return sipCpp;
1737         }
1738     }
1739 
1740     return SIP_NULLPTR;
1741 }
1742 
1743 
1744 /* Define this type's super-types. */
1745 static sipEncodedTypeDef supers_wxJoystick[] = {{38, 0, 1}};
1746 
1747 
1748 static PyMethodDef methods_wxJoystick[] = {
1749     {SIP_MLNAME_CAST(sipName_GetButtonState), SIP_MLMETH_CAST(meth_wxJoystick_GetButtonState), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxJoystick_GetButtonState)},
1750     {SIP_MLNAME_CAST(sipName_GetManufacturerId), meth_wxJoystick_GetManufacturerId, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetManufacturerId)},
1751     {SIP_MLNAME_CAST(sipName_GetMaxAxes), meth_wxJoystick_GetMaxAxes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetMaxAxes)},
1752     {SIP_MLNAME_CAST(sipName_GetMaxButtons), meth_wxJoystick_GetMaxButtons, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetMaxButtons)},
1753     {SIP_MLNAME_CAST(sipName_GetMovementThreshold), meth_wxJoystick_GetMovementThreshold, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetMovementThreshold)},
1754     {SIP_MLNAME_CAST(sipName_GetNumberAxes), meth_wxJoystick_GetNumberAxes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetNumberAxes)},
1755     {SIP_MLNAME_CAST(sipName_GetNumberButtons), meth_wxJoystick_GetNumberButtons, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetNumberButtons)},
1756     {SIP_MLNAME_CAST(sipName_GetNumberJoysticks), meth_wxJoystick_GetNumberJoysticks, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetNumberJoysticks)},
1757     {SIP_MLNAME_CAST(sipName_GetPOVCTSPosition), meth_wxJoystick_GetPOVCTSPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetPOVCTSPosition)},
1758     {SIP_MLNAME_CAST(sipName_GetPOVPosition), meth_wxJoystick_GetPOVPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetPOVPosition)},
1759     {SIP_MLNAME_CAST(sipName_GetPollingMax), meth_wxJoystick_GetPollingMax, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetPollingMax)},
1760     {SIP_MLNAME_CAST(sipName_GetPollingMin), meth_wxJoystick_GetPollingMin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetPollingMin)},
1761     {SIP_MLNAME_CAST(sipName_GetPosition), SIP_MLMETH_CAST(meth_wxJoystick_GetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxJoystick_GetPosition)},
1762     {SIP_MLNAME_CAST(sipName_GetProductId), meth_wxJoystick_GetProductId, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetProductId)},
1763     {SIP_MLNAME_CAST(sipName_GetProductName), meth_wxJoystick_GetProductName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetProductName)},
1764     {SIP_MLNAME_CAST(sipName_GetRudderMax), meth_wxJoystick_GetRudderMax, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetRudderMax)},
1765     {SIP_MLNAME_CAST(sipName_GetRudderMin), meth_wxJoystick_GetRudderMin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetRudderMin)},
1766     {SIP_MLNAME_CAST(sipName_GetRudderPosition), meth_wxJoystick_GetRudderPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetRudderPosition)},
1767     {SIP_MLNAME_CAST(sipName_GetUMax), meth_wxJoystick_GetUMax, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetUMax)},
1768     {SIP_MLNAME_CAST(sipName_GetUMin), meth_wxJoystick_GetUMin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetUMin)},
1769     {SIP_MLNAME_CAST(sipName_GetUPosition), meth_wxJoystick_GetUPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetUPosition)},
1770     {SIP_MLNAME_CAST(sipName_GetVMax), meth_wxJoystick_GetVMax, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetVMax)},
1771     {SIP_MLNAME_CAST(sipName_GetVMin), meth_wxJoystick_GetVMin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetVMin)},
1772     {SIP_MLNAME_CAST(sipName_GetVPosition), meth_wxJoystick_GetVPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetVPosition)},
1773     {SIP_MLNAME_CAST(sipName_GetXMax), meth_wxJoystick_GetXMax, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetXMax)},
1774     {SIP_MLNAME_CAST(sipName_GetXMin), meth_wxJoystick_GetXMin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetXMin)},
1775     {SIP_MLNAME_CAST(sipName_GetYMax), meth_wxJoystick_GetYMax, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetYMax)},
1776     {SIP_MLNAME_CAST(sipName_GetYMin), meth_wxJoystick_GetYMin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetYMin)},
1777     {SIP_MLNAME_CAST(sipName_GetZMax), meth_wxJoystick_GetZMax, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetZMax)},
1778     {SIP_MLNAME_CAST(sipName_GetZMin), meth_wxJoystick_GetZMin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetZMin)},
1779     {SIP_MLNAME_CAST(sipName_GetZPosition), meth_wxJoystick_GetZPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_GetZPosition)},
1780     {SIP_MLNAME_CAST(sipName_HasPOV), meth_wxJoystick_HasPOV, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_HasPOV)},
1781     {SIP_MLNAME_CAST(sipName_HasPOV4Dir), meth_wxJoystick_HasPOV4Dir, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_HasPOV4Dir)},
1782     {SIP_MLNAME_CAST(sipName_HasPOVCTS), meth_wxJoystick_HasPOVCTS, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_HasPOVCTS)},
1783     {SIP_MLNAME_CAST(sipName_HasRudder), meth_wxJoystick_HasRudder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_HasRudder)},
1784     {SIP_MLNAME_CAST(sipName_HasU), meth_wxJoystick_HasU, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_HasU)},
1785     {SIP_MLNAME_CAST(sipName_HasV), meth_wxJoystick_HasV, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_HasV)},
1786     {SIP_MLNAME_CAST(sipName_HasZ), meth_wxJoystick_HasZ, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_HasZ)},
1787     {SIP_MLNAME_CAST(sipName_IsOk), meth_wxJoystick_IsOk, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_IsOk)},
1788     {SIP_MLNAME_CAST(sipName_ReleaseCapture), meth_wxJoystick_ReleaseCapture, METH_VARARGS, SIP_MLDOC_CAST(doc_wxJoystick_ReleaseCapture)},
1789     {SIP_MLNAME_CAST(sipName_SetCapture), SIP_MLMETH_CAST(meth_wxJoystick_SetCapture), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxJoystick_SetCapture)},
1790     {SIP_MLNAME_CAST(sipName_SetMovementThreshold), SIP_MLMETH_CAST(meth_wxJoystick_SetMovementThreshold), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxJoystick_SetMovementThreshold)}
1791 };
1792 
1793 sipVariableDef variables_wxJoystick[] = {
1794     {PropertyVariable, sipName_ZPosition, &methods_wxJoystick[30], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1795     {PropertyVariable, sipName_ZMin, &methods_wxJoystick[29], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1796     {PropertyVariable, sipName_ZMax, &methods_wxJoystick[28], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1797     {PropertyVariable, sipName_YMin, &methods_wxJoystick[27], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1798     {PropertyVariable, sipName_YMax, &methods_wxJoystick[26], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1799     {PropertyVariable, sipName_XMin, &methods_wxJoystick[25], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1800     {PropertyVariable, sipName_XMax, &methods_wxJoystick[24], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1801     {PropertyVariable, sipName_VPosition, &methods_wxJoystick[23], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1802     {PropertyVariable, sipName_VMin, &methods_wxJoystick[22], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1803     {PropertyVariable, sipName_VMax, &methods_wxJoystick[21], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1804     {PropertyVariable, sipName_UPosition, &methods_wxJoystick[20], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1805     {PropertyVariable, sipName_UMin, &methods_wxJoystick[19], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1806     {PropertyVariable, sipName_UMax, &methods_wxJoystick[18], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1807     {PropertyVariable, sipName_RudderPosition, &methods_wxJoystick[17], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1808     {PropertyVariable, sipName_RudderMin, &methods_wxJoystick[16], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1809     {PropertyVariable, sipName_RudderMax, &methods_wxJoystick[15], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1810     {PropertyVariable, sipName_ProductName, &methods_wxJoystick[14], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1811     {PropertyVariable, sipName_ProductId, &methods_wxJoystick[13], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1812     {PropertyVariable, sipName_Position, &methods_wxJoystick[12], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1813     {PropertyVariable, sipName_PollingMin, &methods_wxJoystick[11], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1814     {PropertyVariable, sipName_PollingMax, &methods_wxJoystick[10], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1815     {PropertyVariable, sipName_POVPosition, &methods_wxJoystick[9], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1816     {PropertyVariable, sipName_POVCTSPosition, &methods_wxJoystick[8], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1817     {PropertyVariable, sipName_NumberButtons, &methods_wxJoystick[6], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1818     {PropertyVariable, sipName_NumberAxes, &methods_wxJoystick[5], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1819     {PropertyVariable, sipName_MovementThreshold, &methods_wxJoystick[4], &methods_wxJoystick[41], SIP_NULLPTR, SIP_NULLPTR},
1820     {PropertyVariable, sipName_MaxButtons, &methods_wxJoystick[3], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1821     {PropertyVariable, sipName_MaxAxes, &methods_wxJoystick[2], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1822     {PropertyVariable, sipName_ManufacturerId, &methods_wxJoystick[1], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1823     {PropertyVariable, sipName_ButtonState, &methods_wxJoystick[0], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1824 };
1825 
1826 PyDoc_STRVAR(doc_wxJoystick, "Joystick(joystick=wx.JOYSTICK1)\n"
1827 "\n"
1828 "wxJoystick allows an application to control one or more joysticks.");
1829 
1830 
1831 sipClassTypeDef sipTypeDef__adv_wxJoystick = {
1832     {
1833         -1,
1834         SIP_NULLPTR,
1835         SIP_NULLPTR,
1836         SIP_TYPE_SCC|SIP_TYPE_CLASS,
1837         sipNameNr_wxJoystick,
1838         {SIP_NULLPTR},
1839         SIP_NULLPTR
1840     },
1841     {
1842         sipNameNr_Joystick,
1843         {0, 0, 1},
1844         42, methods_wxJoystick,
1845         0, SIP_NULLPTR,
1846         30, variables_wxJoystick,
1847         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1848     },
1849     doc_wxJoystick,
1850     -1,
1851     -1,
1852     supers_wxJoystick,
1853     SIP_NULLPTR,
1854     init_type_wxJoystick,
1855     SIP_NULLPTR,
1856     SIP_NULLPTR,
1857 #if PY_MAJOR_VERSION >= 3
1858     SIP_NULLPTR,
1859     SIP_NULLPTR,
1860 #else
1861     SIP_NULLPTR,
1862     SIP_NULLPTR,
1863     SIP_NULLPTR,
1864     SIP_NULLPTR,
1865 #endif
1866     dealloc_wxJoystick,
1867     assign_wxJoystick,
1868     array_wxJoystick,
1869     copy_wxJoystick,
1870     release_wxJoystick,
1871     cast_wxJoystick,
1872     SIP_NULLPTR,
1873     SIP_NULLPTR,
1874     SIP_NULLPTR,
1875     SIP_NULLPTR,
1876     SIP_NULLPTR,
1877     SIP_NULLPTR
1878 };
1879