使用 Lua 脚本向 BizHawk 发送输入

我尝试使用 joypad.set(Inputs),但似乎没有任何作用。而且 joypad.write(Inputs) 甚至都不起作用。我陷入了困境,不知道该怎么办。

点赞
用户774972
用户774972

这个例子适用于模拟 GBA。它将使模拟器在每一帧都按下右键。

input = {}

input['A'] = false
input['B'] = false
input['Down'] = false
input['L'] = false
input['Left'] = false
input['Power'] = false
input['R'] = false
input['Right'] = true
input['Select'] = false
input['Start'] = false
input['Up'] = false

while true do
    joypad.set(input)
    emu.frameadvance()
end

根据你的模拟情况,这个也可能有用:

input['P1 A'] = false
2018-11-25 20:54:02