update: version 2007.7.4
source:
http://www.mediafire.com/?3mlzziparmeexe with test script:
http://www.mediafire.com/?4iy1b5xglgjChanges:
Added support for the MultiKey input function. Use like this:
If mKey(SC.ESCAPE) then
[code block]
end
see the readme for all the scancode (SC) flags
I've changed the way that GetMouse() works. Instead of using:
x,y,buttons = GetMouse()
you need only one variable:
mouse = GetMouse()
this will set "mouse" as a table with the following elements:
mouse.X = mouse x pos
mouse.Y = mouse y pos
mouse.C = true (1) if the mouse is being captured to the program window, false (nil) if not
mouse.L = left button - true if pressed
mouse.R = right button - true if pressed
mouse.M = middle button - true if pressed
SetMouse() has been changed to three different functions:
SetMouse.Visible(true/false) --set to false to hide the mouse cursor, true to show it again
SetMouse.Clip(true/false) --set to true to hold the mouse cursor inside the program window
SetMouse.Pos(x,y) - sets mouse cursor to an x,y pos inside the program window
added support for using joysticks, works similar to the new version of GetMouse(), see readme for details.
Also, I found a pdf reference file with the standard lua functions and have included it in the archives.