Remove unnecessary clearing of dict entries in joypad Lua lib

this was done long enough ago (78d8effcf) that I'm going to assume it was a
workaround for a problem which has since been fixed
This commit is contained in:
YoshiRulz 2021-01-17 23:16:20 +10:00
parent 78931e0256
commit 742f182c32
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 16 deletions

View File

@ -15,25 +15,11 @@ namespace BizHawk.Client.Common
[LuaMethodExample("local nljoyget = joypad.get( 1 );")]
[LuaMethod("get", "returns a lua table of the controller buttons pressed. If supplied, it will only return a table of buttons for the given controller")]
public LuaTable Get(int? controller = null)
{
var table = _th.DictToTable(APIs.Joypad.Get(controller));
table["clear"] = null;
table["getluafunctionslist"] = null;
table["output"] = null;
return table;
}
public LuaTable Get(int? controller = null) => _th.DictToTable(APIs.Joypad.Get(controller));
[LuaMethodExample("local nljoyget = joypad.getwithmovie( 1 );")]
[LuaMethod("getwithmovie", "returns a lua table of the controller buttons pressed, including ones pressed by the current movie. If supplied, it will only return a table of buttons for the given controller")]
public LuaTable GetWithMovie(int? controller = null)
{
var table = _th.DictToTable(APIs.Joypad.GetWithMovie(controller));
table["clear"] = null;
table["getluafunctionslist"] = null;
table["output"] = null;
return table;
}
public LuaTable GetWithMovie(int? controller = null) => _th.DictToTable(APIs.Joypad.GetWithMovie(controller));
[LuaMethodExample("local nljoyget = joypad.getimmediate( );")]
[LuaMethod("getimmediate", "returns a lua table of any controller buttons currently pressed by the user")]