コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }