public void OnDisable() { timer.Stop(); App.Window.KeyPressed -= KeyDown; App.Window.KeyReleased -= KeyUp; KeysPressed.Clear(); }
public void ClearKeyCache() { KeysPressed.Clear(); KeysReleased.Clear(); MousePressed = MouseButtons.None; MouseReleased = MouseButtons.None; MouseWheelDelta = 0; }
public void ClearKeyCache() { KeysPressed.Clear(); KeysReleased.Clear(); MousePressed = MouseButtonFlags.None; MouseWheelDelta = 0; _mouseDelta.X = 0; _mouseDelta.Y = 0; }
/// <summary> /// Clears the <see cref="KeysPressed"/>, <see cref="KeysDown"/>, <see cref="KeysReleased"/> collections. /// </summary> public void Clear() { KeysPressed.Clear(); KeysDown.Clear(); KeysReleased.Clear(); }
public EconEventArgs ClearKeys() { KeysPressed.Clear(); return(this); }
public EconEventArgs RemoveAllKeys() { KeysPressed.Clear(); return(this); }