void inp_MouseMoved(Broadphases.Input.MouseData data) { if( !transform ) m_Position.Value = new Vector3(data.mouseX, data.mouseY, 0.0f); if (transform) m_Position.Value = Camera.ScreenToWorld(new Vector2(data.mouseX, data.mouseY) , 0.0f); }
void Follower_KeyPressed(Broadphases.Input.KeyData key) { if (key.keyCode == Microsoft.Xna.Framework.Input.Keys.S) active = !active; }
void ButtonReleased(Broadphases.Input.MouseData data) { Box = Rectangle.Empty; Selecting = false; }
void ButtonHeld(Broadphases.Input.MouseData data) { if( data.mouseButtons[0] ) { Vector3 pos = new Vector3(data.mouseX, data.mouseY, 0.0f); m_CurrentPosition = pos; m_Box.Width = (int)pos.X - m_Box.X; m_Box.Height = (int)pos.Y - m_Box.Y; Selecting = true; } }
void ButtonClicked(Broadphases.Input.MouseData data) { if (data.mouseButtons[0]) { m_Box = new Rectangle((int)data.mouseX, (int)data.mouseY, 0, 0); m_CurrentPosition = new Vector3(data.mouseX, data.mouseY, 0.0f); } }