1 //Create a class for Touch sensor
10 Touched(Closure sendEvent, int isTouched) {
11 this.sendEvent = sendEvent
12 this.isTouched = isTouched
18 def setValue(LinkedHashMap eventDataMap) {
19 println("The application is Touched!")
20 this.isTouched = 1 //Do we need this?
21 sendEvent(eventDataMap)