Bladeren bron

Fix typo in gamepad documentation (#546)

Maroun Baydoun 3 maanden geleden
bovenliggende
commit
d79014a30c
3 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  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