I'm early in the process of learning to use MOAI but am liking it so far!
Came upon my first problem today however that I was hoping someone could help me with.
I want to add a callback for touch events and found code doing it like this:
function(eventType, id, x, y, tapCount)
When I'm adding this to my code I get an error saying:
"unprotected error in call to Lua API (attempt to index field 'touch' (a nil value))"
I'm pretty new to Lua as well, so I'm not sure whether this is something I've done wrong in Lua or Moai..