1 //Create a class for Touch sensor
8 Touched(Closure sendEvent, int isTouched) {
9 this.sendEvent = sendEvent
10 this.isTouched = isTouched
14 def setValue(LinkedHashMap eventDataMap) {
15 println("The application is Touched!")
16 this.isTouched = 1 //Do we need this?
17 sendEvent(eventDataMap)