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