Advertisement
Kaztalek

essposition.lua

Apr 13th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. -- "essposition.lua"
  2. -- 'z' to ESS downleft, 'x' to ESS downright, 'c' to end
  3.  
  4. while true do
  5.     result = input.get()
  6.     if result.Z then
  7.         joypad.setanalog({["X Axis"]=-15, ["Y Axis"]=-15}, 1)
  8.     elseif result.X then
  9.         joypad.setanalog({["X Axis"]=15, ["Y Axis"]=-15}, 1)
  10.     elseif result.C then
  11.         joypad.setanalog({["X Axis"]=0, ["Y Axis"]=0}, 1)
  12.     end
  13.     emu.frameadvance()
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement