[PyQt] Re: Joystick Keyboard
Neil Wallace
rowinggolfer at hotmail.com
Thu Mar 6 10:16:38 GMT 2008
>
>
> From:
> "Jon Chambers"
> Date:
> Wed, 5 Mar 2008 23:58:26 +0000
> To:
> pyqt at riverbankcomputing.com
>
>
>
> Hi,
> I'm trying to write a program that creates an onscreen keyboard that
> uses an 2-analogue stick joypad for input. I'm having issues becuase
> the joystick needs to be polled regularly. I'm using a QTimer to call
> a paintEvent update() that polls the joystick in the main class
> (Keyboard). However there's some other drawing i want to do when the
> joystick is polled. However the drawing is supposed to be done by a
> different class with its own graphics etc (called Ring), and i found
> the only way that seemed to work was to put the drawing i want to do
> in the paintEvent of that class and both seem to get called. But this
> seems kinda weird, and for some reason if i simply called the drawing
> to be done by Ring as a method of the Ring object in the paintEvent of
> Keyboard it doesn't work.
> I'm sorry if there's a bit confusing, i'm very new to programming and
> QT and also asking questions on mailing lists.
>
Hi Jon,
Have you considered using pygame module for your joystick controls?
Neil.
_________________________________________________________________
Share what Santa brought you
https://www.mycooluncool.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080306/3d884aaa/attachment.html
More information about the PyQt
mailing list