Skip to content

Commit fabef27

Browse files
author
adelikat
committed
Fix joypad.set "unit test" script
1 parent 42ff4c0 commit fabef27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

output/Lua/UnitTests/Joypad_Set.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ buttons["P1 Up"] = false;
1414
buttons["P1 Down"] = true;
1515
buttons["P1 Left"] = "invert";
1616
buttons["P1 Right"] = null;
17+
joypad.set(buttons);
1718

1819
pushThings = true;
1920

2021
while true do
2122
if (pushThings) then
23+
buttons = { };
2224
buttons["P1 A"] = false;
2325
buttons["P1 B"] = true;
2426
buttons["P1 Select"] = "invert";

0 commit comments

Comments
 (0)