News for hackers. Stuff that matters.
Re:Introducing C# in Godot by tonyedgecombe on Sunday October 22, 2017 @06:56AM (#15526152)
Or:

    if (ev is InputEventMouse mouseEvent)
    {
        Vector2 mousePos = mouseEvent.Position;
    }
    else if (ev is InputEventKey keyEvent)
    {
        bool aPressed = keyEvent.Pressed && keyEvent.Scancode == GD.KEY_A;
    }

There are no comments on this comment yet.