From 58e9c1da8c72949d37ff16c029ae356c3a924c54 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 15 Jan 2019 15:15:16 -0800 Subject: [PATCH] Merge pull request #1130 from swt2c/fix_joystick_stubs Fix joystick stub compilation (cherry picked from commit 4d50f773abbb12620d7c711b9ad4155fabe8c290) --- 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)