static void OnKeyUp(char key, GLUTWrapper.SpecialKey specialKey, GLUTWrapper.ModifierKey modifiers) { Noesis.Key noesisKey = GetNoesisKey(key, specialKey); if (noesisKey != Noesis.Key.None) { _view.KeyUp(noesisKey); } ProcessModifiers(modifiers); }
static void ProcessModifiers(GLUTWrapper.ModifierKey modifiers) { ProcessModifier(ref _isShiftDown, (modifiers & GLUTWrapper.ModifierKey.Shift) != 0, Noesis.Key.LeftShift); ProcessModifier(ref _isCtrlDown, (modifiers & GLUTWrapper.ModifierKey.Ctrl) != 0, Noesis.Key.LeftCtrl); ProcessModifier(ref _isAltDown, (modifiers & GLUTWrapper.ModifierKey.Alt) != 0, Noesis.Key.LeftAlt); }