Kaynağa Gözat

Fix typo in gamepad documentation (#546)

Maroun Baydoun 3 ay önce
ebeveyn
işleme
d79014a30c

+ 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