private static void MouseUp(object sender, MouseEventArgs mouseEventArgs) { if (mouseEventArgs.Button == MouseButtons.Left) KeysPressed &= ~VolumeScrollKey.LeftMouseButton; if (mouseEventArgs.Button == MouseButtons.Right) KeysPressed &= ~VolumeScrollKey.RightMouseButton; }
private static void MouseUp(object sender, MouseEventArgs mouseEventArgs) { if (mouseEventArgs.Button == MouseButtons.Left) { KeysPressed &= ~VolumeScrollKey.LeftMouseButton; } if (mouseEventArgs.Button == MouseButtons.Right) { KeysPressed &= ~VolumeScrollKey.RightMouseButton; } }
private static void KeyUp(object sender, KeyEventArgs keyEventArgs) { if (keyEventArgs.Alt) KeysPressed &= ~VolumeScrollKey.Alt; if (keyEventArgs.Control) KeysPressed &= ~VolumeScrollKey.Control; if (keyEventArgs.Shift) KeysPressed &= ~VolumeScrollKey.Shift; if (keyEventArgs.KeyCode == Keys.LWin) KeysPressed &= ~VolumeScrollKey.LWin; if (keyEventArgs.KeyCode == Keys.RWin) KeysPressed &= ~VolumeScrollKey.RWin; }
private static void KeyUp(object sender, KeyEventArgs keyEventArgs) { if (keyEventArgs.Alt) { KeysPressed &= ~VolumeScrollKey.Alt; } if (keyEventArgs.Control) { KeysPressed &= ~VolumeScrollKey.Control; } if (keyEventArgs.Shift) { KeysPressed &= ~VolumeScrollKey.Shift; } if (keyEventArgs.KeyCode == Keys.LWin) { KeysPressed &= ~VolumeScrollKey.LWin; } if (keyEventArgs.KeyCode == Keys.RWin) { KeysPressed &= ~VolumeScrollKey.RWin; } }