Subversion Repositories HomeAutomation

Rev

Rev 1301 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1301 Rev 1302
Line 47... Line 47...
47
            }
47
            }
48
       
48
       
49
            this.callEvent("newGesture", null);
49
            this.callEvent("newGesture", null);
50
            break;
50
            break;
51
        case "Raw":
51
        case "Raw":
-
 
52
            this.myLastX = canMessage.getData("X");
-
 
53
            this.myLastY = canMessage.getData("Y");
52
            if (this.myLastState == "Pressed" && canMessage.getData("Status") == "Released")
54
            if (this.myLastState == "Pressed" && canMessage.getData("Status") == "Released")
53
            {
55
            {
54
                this.myLastState = "Released";
56
                this.myLastState = "Released";
55
                this.callEvent("rawStatus", null);
57
                this.callEvent("rawStatus", null);
56
            }
58
            }
57
            else if (this.myLastState == "Released" && canMessage.getData("Status") == "Pressed")
59
            else if (this.myLastState == "Released" && canMessage.getData("Status") == "Pressed")
58
            {
60
            {
59
                this.myLastState = "Pressed";
61
                this.myLastState = "Pressed";
60
                this.callEvent("rawStatus", null);
62
                this.callEvent("rawStatus", null);
61
            }
63
            }
62
            this.myLastX = canMessage.getData("X");
-
 
63
            this.myLastY = canMessage.getData("Y");
-
 
64
           
64
           
65
            this.callEvent("rawTouch", null);
65
            this.callEvent("rawTouch", null);
66
            break;
66
            break;
67
        }
67
        }
68
    }
68
    }