Subversion Repositories HomeAutomation

Rev

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

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