public WalkaroundCameraInputHandler() { Block(MessageType.KeyDown); Block(MessageType.KeyUp); Block(MessageType.MouseWheel); Block(MessageType.MouseUp); Block(MessageType.MouseDown); Block(MessageType.MouseMove); Block(MessageType.MouseClick); zfunc = (x, y) => 0; }
public WalkaroundCamera(View view, ZFunc zfunc) : base(view) { this.zfunc = zfunc; view.KeyDown += new System.Windows.Forms.KeyEventHandler(view_KeyDown); view.Frame += new View.FrameEventHandler(view_Frame); view.KeyUp += new System.Windows.Forms.KeyEventHandler(view_KeyUp); view.MouseMove += new System.Windows.Forms.MouseEventHandler(view_MouseMove); view.MouseDown += new System.Windows.Forms.MouseEventHandler(view_MouseDown); view.MouseUp += new System.Windows.Forms.MouseEventHandler(view_MouseUp); view.MouseWheel += new System.Windows.Forms.MouseEventHandler(view_MouseWheel); UpdateRot(); }