Exemplo n.º 1
0
 public InputManager(RenderForm renderform)
 {
     events_                = new Stack <InputEvent>();
     Instance               = this;
     mouseinformation_      = new MouseInformation();
     renderform.MouseMove  += OnMouseMove;
     renderform.MouseDown  += OnMouseDown;
     renderform.MouseUp    += OnMouseUp;
     renderform.MouseWheel += OnMouseWheel;
     renderform.KeyDown    += OnKeyDown;
     renderform.KeyPress   += OnKeyPress;
     renderform.KeyUp      += OnKeyUp;
 }
Exemplo n.º 2
0
        // Public

        // Lifecycle

        public MouseEvent(MouseEventType type, MouseInformation info)
        {
            type_           = InputEventType.MouseEvent;
            mouseeventtype_ = type;
            mouse_          = info;
        }
Exemplo n.º 3
0
 public InputManager()
 {
     Instance          = this;
     events_           = new Stack <InputEvent>();
     mouseinformation_ = new MouseInformation();
 }