//Create a global variable for send event @Field def sendEvent = {eventDataMap -> eventHandler(eventDataMap) } //Object for location @Field def locationObject = new LocationVar() //Object for touch @Field def appObject = new Touched(sendEvent, 0) //Create a global list for events @Field def evt = []