Reputation: 819
I've been looking into input handling for an OpenGL application. I want to handle at least two joysticks, keyboard, and mouse. Outsourcing this to python scripting would be a big bonus, but not required.
Is my concern over the Pygame problem a moot point when I get into it? Can QT or GTK provide this functionality without issue? Is there another alternative that solves my problem?
All else fails I think I can go straight SDL, but I don't know much about it's performance.
Upvotes: 1
Views: 1229
Reputation: 7501
Pygame (which uses SDL, from python) works fine with OpenGL. Use pygame for input events, window creation, etc... (the cross platform stuff) and OpenGL for rendering to the pygame screen.
Upvotes: 0
Reputation: 473292
This question really isn't about OpenGL, as OpenGL has very little to do with input handling.
Qt and wxWidgets are not primarily for dealing with input. Obviously they handle mouse and keyboard, but they're basically GUI libraries. Their input systems are designed and intended for that purpose.
SDL's input component is designed for dealing with input. SFML is also an option. Both of them have Python bindings if that's important for you.
Upvotes: 4