00001 using System;
00002 using Microsoft.DirectX;
00003 using Microsoft.DirectX.Direct3D;
00004 using Microsoft.Samples.DirectX.UtilityToolkit;
00005
00006 namespace DXGfxLib
00007 {
00008 public interface IInputHandler : IDisposable
00009 {
00010 Avatar CurrentAvatar { get; set; }
00011 void OnKeyDown(System.Windows.Forms.KeyEventArgs e);
00012 void OnKeyPress(System.Windows.Forms.KeyEventArgs e);
00013 void OnKeyUp(System.Windows.Forms.KeyEventArgs e);
00014 void OnMouseClick(System.Windows.Forms.MouseEventArgs e);
00015 void OnMouseDoubleClick(System.Windows.Forms.MouseEventArgs e);
00016 void OnMouseDown(System.Windows.Forms.MouseEventArgs e);
00017 void OnMouseMove(System.Windows.Forms.MouseEventArgs e);
00018 void OnMouseUp(System.Windows.Forms.MouseEventArgs e);
00019 void OnMouseWheel(System.Windows.Forms.MouseEventArgs e);
00020 bool HandleMessages(IntPtr hWnd, NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam);
00021 void WndProc(ref System.Windows.Forms.Message m);
00022 IntPtr OnMsgProc(IntPtr hWnd, NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam);
00023 void FrameMove(float elapsedTime);
00024 }
00025 }