diff --git a/tutorials/inputs/input_examples.rst b/tutorials/inputs/input_examples.rst index 3d210c8c0..2edebdaab 100644 --- a/tutorials/inputs/input_examples.rst +++ b/tutorials/inputs/input_examples.rst @@ -282,7 +282,7 @@ also counts as a button - two buttons, to be precise, with both public override void _Input(InputEvent inputEvent) { - if (inputEvent as InputEventMouseButton mouseEvent && mouseEvent.Pressed) + if (inputEvent is InputEventMouseButton mouseEvent && mouseEvent.Pressed) { switch ((ButtonList)mouseEvent.ButtonIndex) {