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; }
// Public // Lifecycle public MouseEvent(MouseEventType type, MouseInformation info) { type_ = InputEventType.MouseEvent; mouseeventtype_ = type; mouse_ = info; }
public InputManager() { Instance = this; events_ = new Stack <InputEvent>(); mouseinformation_ = new MouseInformation(); }