Hello,
very old thread, but I have a solution to play with a mouse.
1. Save the following code as lemmmouse.lua
function LEMMINGSMouse()
inp = input.get()
pad = joypad.get(1)
offset = -4
--cursorx = memory.readbyte(0x7E0071)
--cursory = memory.readbyte(0x7E0073)
--gui.text(2, 60, cursorx)
if(inp.xmouse+offset >= 0 and inp.xmouse+offset <= 246) then
memory.writebyte(0x7E0071,inp.xmouse+offset)
elseif(inp.xmouse+offset < 0) then
memory.writebyte(0x7E0071,0)
elseif(inp.xmouse+offset > 246) then
memory.writebyte(0x7E0071,246)
end
--gui.text(2, 70, inp.xmouse+offset)
--gui.text(2, 100, cursory)
if(inp.ymouse+offset >= 0 and inp.ymouse+offset <= 214) then
memory.writebyte(0x7E0073,inp.ymouse+offset)
elseif(inp.ymouse+offset < 0) then
memory.writebyte(0x7E0073,0)
elseif(inp.ymouse+offset > 214) then
memory.writebyte(0x7E0073,214)
end
--gui.text(2, 110, inp.ymouse+offset)
if (inp.xmouse+offset > 245) then
pad.right = true
joypad.set(1,pad)
end
if (inp.xmouse+offset < 1) then
pad.left = true
joypad.set(1,pad)
end
if (inp.leftclick) then
pad.A = true
joypad.set(1,pad)
end
if (inp.rightclick) then
pad.X = true
joypad.set(1,pad)
end
end
gui.register(LEMMINGSMouse)
2. Use snes9x with LUA support.
hxxps:..github.com/gocha/snes9x/releases
3. Load Lemmings (Europe).zip (MD5 e51730370bf2b04a426b2a55b3f1972c)
4. Load my LUAscript and enjoy Lemmings with mouse :-)
For other Lemmings rom versions I have to change the memory locations for the cursor.
Have fun !