mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
Fix C# condition being as instead of is in Input examples (#4362)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user