TouchPad Game Controller With Delegates and Subclassing

Hi folks !

My first post here.

I just added a TouchPad library to the wiki.

video here - http://www.youtube.com/watch?v=aqGZRQRBtSI

code here - http://dosetsu.parseapp.com/blog/TouchPad.html

TouchPad.lua - base class

TouchPadCircle.lua - inherits and implements TouchPad

TouchPadRect.lua - inherits and implements TouchPad

I also add the Main.lua that i used to test with. It shows how to use the classes
and how to setup delegates to listen for callbacks. You can also use this to implement buttons.

Hope this helps !

Nice! Thanks!

Someone recently requested the code for this. My original post got blown away at some point, so here is a code dump in case anyone would like learn from it.

http://dosetsu.parseapp.com/blog/TouchPad.html