浏览代码

Merge branch 'master' of https://github.com/defold/doc

Björn Ritzl 3 月之前
父节点
当前提交
2bb651feaa
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      docs/en/manuals/input-gamepads.md
  2. 1 1
      docs/pl/manuals/input-gamepads.md
  3. 1 1
      docs/zh/manuals/input-gamepads.md

+ 1 - 1
docs/en/manuals/input-gamepads.md

@@ -134,7 +134,7 @@ It is possible to check if an input action for a gamepad is from an unknown game
 
 ```lua
 function on_input(self, action_id, action)
-    if action_is == hash("connected") then
+    if action_id == hash("connected") then
         if action.gamepad_unknown then
             print("The connected gamepad is unidentified and will only generate raw input")
         else

+ 1 - 1
docs/pl/manuals/input-gamepads.md

@@ -142,7 +142,7 @@ Możesz sprawdzić, czy akcja wejścia dla gamepada jest od nieznanego gamepada,
 
 ```lua
 function on_input(self, action_id, action)
-    if action_is == hash("connected") then
+    if action_id == hash("connected") then
         if action.gamepad_unknown then
             print("The connected gamepad is unidentified and will only generate raw input")
         else

+ 1 - 1
docs/zh/manuals/input-gamepads.md

@@ -134,7 +134,7 @@ end
 
 ```lua
 function on_input(self, action_id, action)
-    if action_is == hash("connected") then
+    if action_id == hash("connected") then
         if action.gamepad_unknown then
             print("The connected gamepad is unidentified and will only generate raw input")
         else