Closed evoggy closed 10 years ago
Hi!
Thanks for reporting this. Yes, it's certainly from removing the QT dependencies, after that commit there shouldn't be any QT dependence in the input layer. I was probably sloppy when testing it :-/
If you have fixed it and would like to contribute then create a pull request and we will review and pull the code into our repo: https://confluence.atlassian.com/display/BITBUCKET/Work+with+pull+requests
Original Comment By: Marcus Eliasson
cflib.utils.callbacks
triggers the error when trying to 'call' a Qt signal. It works OK when using the signal emit()
method instead.
Furthermore, the registered signal ends up calling the cfclient.utils.input
set_trim()
method. The call fails because the method does not exist (I suspect that it refers to _update_trim()
method.
I am fairly noob in using version control systems (I am just an amateur programmer), but I am really excited to collaborate in your (amazing) project. I have fixed both issues in my local copy but I ignore how to file a "pull request" to your repository: do not hesitate to point me to your preferred way of collaboration ;-)
Among the callbacks registered for self.rp_trim_updated there is a PyQt4.QtCore.pyqtBoundSignal. This object is not callable. Instead you may use its method emit(*args)
Althoug my experience with PyQt4 is zero (or nothing), I suspect that the PyQt4 architecture is not based on callbacks, but on signals & slots.
When using the latest version of the PC client, the following error is triggered when pushing any of the buttons of my PS3-like joystick (axis inputs work OK):
cfclient-2013.4.2 version is working OK (all joystick inputs). I suspect that the error appeared after the "Removed QT dependency from headless client and input layer": (I do not reproduce the error if I update the repository back to Rev 184).
The configuration is Xubuntu 13.04 (all dependencies updated). Same behavior when using the Bitcraze VM.