1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From 0c0437b18d2f70d1be8e190a172f6bd806bb2409 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Sun, 6 Jan 2019 23:23:59 -0500
Subject: [PATCH] Fix joystick stub compilation
Fixes #1125
---
etg/joystick.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/etg/joystick.py b/etg/joystick.py
index 8508ceda..9f4534ee 100644
--- a/etg/joystick.py
+++ b/etg/joystick.py
@@ -36,8 +36,8 @@ def run():
assert isinstance(c, etgtools.ClassDef)
c.mustHaveApp()
- c.addItem(MethodDef(name='GetMaxButtons', type='int', isConst=True))
- c.addItem(MethodDef(name='GetMaxAxes', type='int', isConst=True))
+ c.addItem(MethodDef(name='GetMaxButtons', type='int', isConst=True, argsString='() const'))
+ c.addItem(MethodDef(name='GetMaxAxes', type='int', isConst=True, argsString='() const'))
tools.generateStubs('wxUSE_JOYSTICK', module)
--
2.20.1
|