Exemple #1
0
        public Mouse(IDisposableResource parent)
            : base(parent)
        {
            input = parent.FindParentOrSelfWithException<Input>();
            input.UpdateEventCallback += UpdateEvent;
            input.UpdateCallback += Update;

            Left = new PositionButton();
            Middle = new PositionButton();
            Right = new PositionButton();
        }
Exemple #2
0
        public Mouse(IDisposableResource parent)
            : base(parent)
        {
            input = parent.FindParentOrSelfWithException <Input>();
            input.UpdateEventCallback += UpdateEvent;
            input.UpdateCallback      += Update;

            Left   = new PositionButton();
            Middle = new PositionButton();
            Right  = new PositionButton();
        }