1 //Create a class for Touch sensor
12 Touched(Closure sendEvent, int isTouched) {
13 this.sendEvent = sendEvent
14 this.isTouched = isTouched
21 def setValue(LinkedHashMap eventDataMap) {
22 println("The application is Touched!")
23 this.isTouched = 1 //Do we need this?
24 sendEvent(eventDataMap)