示例#1
0
        public bool matches(EventName name, int depth)
        {
            int myCount    = myIds.Count;
            int otherCount = name.myIds.Count;

            if (depth >= myCount || depth >= otherCount)
            {
                return(false);
            }

            if (myIds[depth] != name.myIds[depth] && myIds[depth] != theWildcard)
            {
                return(false);
            }

            return(true);
        }
示例#2
0
        public bool matches(EventName name)
        {
            int  myCount    = myIds.Count;
            int  otherCount = name.myIds.Count;
            bool match      = true;
            int  place      = 0;

            while (match)
            {
                if (myIds[place] != name.myIds[place] && myIds[place] != theWildcard)
                {
                    match = false;
                }

                place += 1;
                if (place >= myCount || place >= otherCount)
                {
                    break;
                }
            }

            return(match);
        }
示例#3
0
 static MouseButtonUpEvent()
 {
     theName = new EventName("input.mouse.button.up");
 }
示例#4
0
 static KeyDownEvent()
 {
     theName = new EventName("input.keyboard.key.down");
 }
示例#5
0
 static MouseButtonDownEvent()
 {
     theName = new EventName("input.mouse.button.down");
 }
示例#6
0
 static MouseWheelEvent()
 {
     theName = new EventName("input.mouse.wheel");
 }
示例#7
0
 static KeyUpEvent()
 {
     theName = new EventName("input.keyboard.key.up");
 }
示例#8
0
 static MouseMoveEvent()
 {
     theName = new EventName("input.mouse.move");
 }