From 216a44e3f0b441ca7172a854d4648e6d6adf236a Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 23 Mar 2012 22:52:02 +0000 Subject: [PATCH] add input.getimmediate --- BizHawk.MultiClient/LuaImplementation.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index 6d04cbc817..5ba6c96da2 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -284,6 +284,7 @@ namespace BizHawk.MultiClient public static string[] JoypadFunctions = new string[] { "set", "get", + "getimmediate" }; public static string[] MultiClientFunctions = new string[] { @@ -1086,9 +1087,20 @@ namespace BizHawk.MultiClient LuaTable buttons = new LuaTable(1, lua); foreach (string button in Global.ControllerOutput.Source.Type.BoolButtons) buttons[button] = Global.ControllerOutput[button]; + + //zero 23-mar-2012 - wtf is this?????? buttons["clear"] = null; buttons["getluafunctionslist"] = null; buttons["output"] = null; + + return buttons; + } + + public LuaTable joypad_getimmediate() + { + LuaTable buttons = new LuaTable(1, lua); + foreach (string button in Global.ActiveController.Type.BoolButtons) + buttons[button] = Global.ActiveController[button]; return buttons; }