示例#1
0
 public MouseDevice(Panel p, ActionMapper mapper, IEventDispatcher dispatcher)
 {
     myMapper      = mapper;
     p.MouseClick += new System.Windows.Forms.MouseEventHandler(this.onMouseClick);
     p.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.onMouseMove);
     myCursor      = new Cursor(dispatcher, p.Size);
 }
示例#2
0
 public WiimoteDevice(Panel p, ActionMapper mapper)
 {
     myMapper = mapper;
 }
示例#3
0
 public void setEventDispatcher(IEventDispatcher argDispatcher)
 {
     dispatcher = argDispatcher;
     mapper     = new ActionMapper(dispatcher);
 }
示例#4
0
 public InputManager()
 {
     device     = null;
     dispatcher = null;
     mapper     = null;
 }