From ce16e4741073c91225e0c85a63aa2b2115b8a87a Mon Sep 17 00:00:00 2001 From: bbbradsmith Date: Sat, 21 Mar 2020 23:00:04 -0400 Subject: [PATCH] lua: document zapper.set --- web/help/LuaFunctionsList.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/help/LuaFunctionsList.html b/web/help/LuaFunctionsList.html index 126f3618..a554c3fc 100644 --- a/web/help/LuaFunctionsList.html +++ b/web/help/LuaFunctionsList.html @@ -418,8 +418,17 @@


The return table consists of 3 values: x, y, and fire.  x and y are the x,y coordinates of the zapper target in terms of pixels.  fire represents the zapper firing.  0 = not firing, 1 = firing


+

zapper.set(table input)


-

Note: The zapper is always controller 2 on the NES so there is no player argument to this function.

+

Sets the zapper input state.

+


+

Taple entries (nil or -1 to leave unaffected):

+

x    - Forces the X position

+

y    - Forces the Y position

+

fire - Forces trigger (true/1 on, false/0 off)

+


+


+

Note: The zapper is always controller 2 on the NES so there is no player argument to these functiosn.



Input Library