Advertisement
Kaztalek

essposition.lua

Feb 20th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. --Name "essposition.lua" (with quotes)
  2. --For use in MM (U) on BizHawk 1.9.1
  3. --'z' to ESS downleft, 'x' to ESS downright, 'c' to end
  4.  
  5. local result = input.get()
  6.  
  7. while true do
  8.     result = input.get()
  9.     if result.Z == true then
  10.         joypad.setanalog({["X Axis"]=-15, ["Y Axis"]=-15}, 1)
  11.     elseif result.X == true then
  12.         joypad.setanalog({["X Axis"]=15, ["Y Axis"]=-15}, 1)
  13.     elseif result.C == true then
  14.         joypad.setanalog({["X Axis"]=0, ["Y Axis"]=0}, 1)
  15.     end
  16.     emu.frameadvance()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement