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); }
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); }
static MouseButtonUpEvent() { theName = new EventName("input.mouse.button.up"); }
static KeyDownEvent() { theName = new EventName("input.keyboard.key.down"); }
static MouseButtonDownEvent() { theName = new EventName("input.mouse.button.down"); }
static MouseWheelEvent() { theName = new EventName("input.mouse.wheel"); }
static KeyUpEvent() { theName = new EventName("input.keyboard.key.up"); }
static MouseMoveEvent() { theName = new EventName("input.mouse.move"); }