コード例 #1
0
            internal KeyboardEvent(EventUnion union)
            {
                var types = new[] {
                    EventType.KeyChar,
                    EventType.KeyDown,
                    EventType.KeyUp
                };

                Debug.Assert(types.Contains(union.type), "Bad union tag");

                DisplayHandle = union.display;
                KeyCode       = union.keyCode;
                Character     = union.uniChar;
                Modifiers     = union.modifiers;
                Repeat        = union.repeat != 0;
                Type          = union.type;
            }
コード例 #2
0
ファイル: Allegro.cs プロジェクト: rmartinho/tglgj2
            internal KeyboardEvent(EventUnion union)
            {
                var types = new[] {
                    EventType.KeyChar,
                    EventType.KeyDown,
                    EventType.KeyUp
                };

                Debug.Assert(types.Contains(union.type), "Bad union tag");

                DisplayHandle = union.display;
                KeyCode = union.keyCode;
                Character = union.uniChar;
                Modifiers = union.modifiers;
                Repeat = union.repeat != 0;
                Type = union.type;
            }
コード例 #3
0
ファイル: Allegro.cs プロジェクト: rmartinho/tglgj2
 public static extern bool GetNextEventImpl(IntPtr handle, out EventUnion @event);
コード例 #4
0
 public static extern bool GetNextEventImpl(IntPtr handle, out EventUnion @event);