Sorry for not releasing this piece of code, i have no time to rewrite/release it. It can be used to try joystick on jsX. Later, i think i'll make it better.Get it here but it was written for 450*270 screen resolution.
It'll be tiny on LCD resolution. (edit line 123 for font path).