mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00: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