I love openFrameworks, but there a few things it just doesn’t do well. Namely joystick events.
openFrameworks uses a windowing system under the hood called GLUT, or the openGL Utility Toolkit. GLUT’s primary benefit is being exceptionally simple and ubiquitous. Anywhere you can use openGL, you can use GLUT. However GLUT has it’s limitations; in it’s simplicity it lacks full featured events from keyboards, mouse and joystick controllers.
That’s where SDL comes in. SDL is similar to GLUT in many ways, but rather than being made as a general purpose utility like GLUT, it is targeted at simple video game creation. This gives it quite reasonable joystick controller and mouse event support.
Thanks to the work over the last year, openFrameworks has become more and more abstracted from it’s windowing toolkit. This was vital for getting openFrameworks to seamlessly work on an iPhone, where GLUT doesn’t exist. I took advantage of this abstraction and made an addOn called ofxSDL. It will cause openFrameworks to use SDL rather than GLUT as it’s windowing system, giving you access to better joystick support.
ofxSDL is still in infancy, and there is a list of todo items before it could be considered finished, but I wanted to put it out there for anyone interested to use and give feedback on.