Fixed joystick functions and changed their interfaces so that they don't allocate.
workaround for borkage of strong typedefs in 0.5
Merge pull request #3 from h3r2tic/master

Joystick stuffs!