瀏覽代碼

Merge pull request #4566 from NathanLovato/fix/input-example-typo

Fix typo in input_examples.rst
Nathan Lovato 4 年之前
父節點
當前提交
81e24ef93b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/inputs/input_examples.rst

+ 1 - 1
tutorials/inputs/input_examples.rst

@@ -203,7 +203,7 @@ the :kbd:`T`:
     {
         if (inputEvent is InputEventKey keyEvent && keyEvent.Pressed)
         {
-            if ((Keylist)keyEvent.Keycode == KeyList.T)
+            if ((KeyList)keyEvent.Keycode == KeyList.T)
             {
                 GD.Print("T was pressed");
             }