Joypad.Set Nox Fixed
This commit is contained in:
parent
4337ea9d63
commit
1c6b792a28
|
@ -1228,8 +1228,7 @@ namespace BizHawk.MultiClient
|
||||||
LuaTable buttons = lua.NewTable();
|
LuaTable buttons = lua.NewTable();
|
||||||
foreach (string button in Global.ControllerOutput.Source.Type.BoolButtons)
|
foreach (string button in Global.ControllerOutput.Source.Type.BoolButtons)
|
||||||
if (button.Substring(0, 2) == "P" + LuaInt(controller).ToString())
|
if (button.Substring(0, 2) == "P" + LuaInt(controller).ToString())
|
||||||
MessageBox.Show(button);
|
buttons[button] = Global.ControllerOutput[button];
|
||||||
//buttons[button] = Global.ControllerOutput[button];
|
|
||||||
|
|
||||||
//zero 23-mar-2012 - wtf is this??????
|
//zero 23-mar-2012 - wtf is this??????
|
||||||
buttons["clear"] = null;
|
buttons["clear"] = null;
|
||||||
|
@ -1247,11 +1246,11 @@ namespace BizHawk.MultiClient
|
||||||
return buttons;
|
return buttons;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void joypad_set(object slot, LuaTable buttons)
|
public void joypad_set(LuaTable buttons)
|
||||||
{
|
{
|
||||||
foreach (var button in buttons.Keys)
|
foreach (var button in buttons.Keys)
|
||||||
if(Convert.ToBoolean(buttons[button]) == true)
|
if(Convert.ToBoolean(buttons[button]) == true)
|
||||||
Global.ClickyVirtualPadController.Click("P" + slot.ToString() + " " + button.ToString());
|
Global.ClickyVirtualPadController.Click(button.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue