Probably this is a silly question, if it could be done it would be already made, I guess....
I don't know a word of Lua, only that it serves to modify subtle aspects of the emulator, to put breakpoints or write the memory.
But, can I use Lua to take the PC mouse data and parse it to the B6 Z80 port like LGB does inside his emulator?