add input.getimmediate
This commit is contained in:
parent
adcb03f8d5
commit
216a44e3f0
|
@ -284,6 +284,7 @@ namespace BizHawk.MultiClient
|
||||||
public static string[] JoypadFunctions = new string[] {
|
public static string[] JoypadFunctions = new string[] {
|
||||||
"set",
|
"set",
|
||||||
"get",
|
"get",
|
||||||
|
"getimmediate"
|
||||||
};
|
};
|
||||||
|
|
||||||
public static string[] MultiClientFunctions = new string[] {
|
public static string[] MultiClientFunctions = new string[] {
|
||||||
|
@ -1086,9 +1087,20 @@ namespace BizHawk.MultiClient
|
||||||
LuaTable buttons = new LuaTable(1, lua);
|
LuaTable buttons = new LuaTable(1, lua);
|
||||||
foreach (string button in Global.ControllerOutput.Source.Type.BoolButtons)
|
foreach (string button in Global.ControllerOutput.Source.Type.BoolButtons)
|
||||||
buttons[button] = Global.ControllerOutput[button];
|
buttons[button] = Global.ControllerOutput[button];
|
||||||
|
|
||||||
|
//zero 23-mar-2012 - wtf is this??????
|
||||||
buttons["clear"] = null;
|
buttons["clear"] = null;
|
||||||
buttons["getluafunctionslist"] = null;
|
buttons["getluafunctionslist"] = null;
|
||||||
buttons["output"] = 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;
|
return buttons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue