internal MouseUpEvent(InputManager.MouseKey k, Vector2 pos) { this.k = k; this.pos = pos; }
private void mousedonw(InputManager.MouseKey k, Vector2 position) { if (!Destroyed && Alive && !Attacking && k == InputManager.MouseKey.LeftKey) { Attacking = true; Rotation = new Vector3(0, World.GetInstance().ActiveCam.Rotation.Y + (float)Math.PI, 0); Model = FireModel; StartAnimation(DefaultClip, false); dgthrown = false; } }
private static void mdown(InputManager.MouseKey k, Vector2 position) { HandleEvent(new MouseDownEvent(k, position)); }
private static void mup(InputManager.MouseKey k, Vector2 pos) { HandleEvent(new MouseUpEvent(k, pos)); }
internal override void HandleEvent(WorldEvent e) { if (!visible) { return; } base.HandleEvent(e); if (e.Handled) { return; } if (!selected) { return; } if (e is KeyDownEvent) { Keys k = (e as KeyDownEvent).Key; if (k == Keys.Back || k == Keys.Delete) { Input((char)8); } else if (CommonData.KeyCharMap.Keys.Contains(k)) { Input(CommonData.KeyCharMap[k][InputManager.IsKeyDown(Keys.LeftShift) || InputManager.IsKeyDown(Keys.RightShift) ? 1 : 0]); } } }