예제 #1
0
 public void OnDisable()
 {
     timer.Stop();
     App.Window.KeyPressed  -= KeyDown;
     App.Window.KeyReleased -= KeyUp;
     KeysPressed.Clear();
 }
예제 #2
0
파일: Input.cs 프로젝트: diqost/bullet
 public void ClearKeyCache()
 {
     KeysPressed.Clear();
     KeysReleased.Clear();
     MousePressed    = MouseButtons.None;
     MouseReleased   = MouseButtons.None;
     MouseWheelDelta = 0;
 }
예제 #3
0
파일: Input.cs 프로젝트: diqost/bullet
 public void ClearKeyCache()
 {
     KeysPressed.Clear();
     KeysReleased.Clear();
     MousePressed    = MouseButtonFlags.None;
     MouseWheelDelta = 0;
     _mouseDelta.X   = 0;
     _mouseDelta.Y   = 0;
 }
예제 #4
0
 /// <summary>
 /// Clears the <see cref="KeysPressed"/>, <see cref="KeysDown"/>, <see cref="KeysReleased"/> collections.
 /// </summary>
 public void Clear()
 {
     KeysPressed.Clear();
     KeysDown.Clear();
     KeysReleased.Clear();
 }
예제 #5
0
 public EconEventArgs ClearKeys()
 {
     KeysPressed.Clear();
     return(this);
 }
예제 #6
0
 public EconEventArgs RemoveAllKeys()
 {
     KeysPressed.Clear();
     return(this);
 }