示例#1
0
 public InputManager(IntPtr handle)
 {
     m_WndProc = new WndProc(handle);
     m_WndProc.MouseWheel += onMouseWheel;
     m_WndProc.MouseMove += onMouseMove;
     m_WndProc.MouseUp += onMouseUp;
     m_WndProc.MouseDown += onMouseDown;
     m_WndProc.KeyDown += onKeyDown;
     m_WndProc.KeyUp += onKeyUp;
     m_WndProc.KeyChar += onKeyChar;
 }
示例#2
0
 public InputService(IntPtr handle)
 {
     m_WndProc = new WndProc(handle);
     m_WndProc.MouseWheel += AddEvent;
     m_WndProc.MouseMove += OnMouseMove;
     m_WndProc.MouseUp += OnMouseUp;
     m_WndProc.MouseDown += OnMouseDown;
     m_WndProc.KeyDown += OnKeyDown;
     m_WndProc.KeyUp += OnKeyUp;
     m_WndProc.KeyChar += OnKeyChar;
 }
示例#3
0
 public void Dispose()
 {
     m_WndProc.MouseWheel -= onMouseWheel;
     m_WndProc.MouseMove -= onMouseMove;
     m_WndProc.MouseUp -= onMouseUp;
     m_WndProc.MouseDown -= onMouseDown;
     m_WndProc.KeyDown -= onKeyDown;
     m_WndProc.KeyUp -= onKeyUp;
     m_WndProc.KeyChar -= onKeyChar;
     m_WndProc.Dispose();
     m_WndProc = null;
 }