added mousebutton_{up/down} and mouse_motion events, renamed "pressed" to "down" and "released" to "up" in event names

git-svn-id: svn://anubis/anaglym/trunk@112 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-10-19 21:50:53 +00:00
1 parent bd4eab495c
commit 66e8b9c015
4 files changed
+38 -38

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ function update_event()
end
end
function key_pressed_event(key)
function key_down_event(key)
if (key == "d") then
ball2:destroy()
elseif (key == "p") then
+1 -1
View File
@@ -21,7 +21,7 @@ ground = ag.loadStaticModel("crate", 10)
ground:setPosition(0, 0, -10)
ag.setCamera(2, -12, 8, 0, 0, 2, 0, 0, 1)
function key_pressed_event(key)
function key_down_event(key)
if (key == "d") then
if (cratenum >= 1) then
local idx = math.random(cratenum)