From d5cda5fddc078fa5fdb93805785fc707f050d8e7 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 10 Sep 2018 19:47:21 +0800 Subject: *update --- src/lua/embed/boot.lua.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lua/embed/boot.lua.h') diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h index f7ffc43..35bfdfc 100644 --- a/src/lua/embed/boot.lua.h +++ b/src/lua/embed/boot.lua.h @@ -45,9 +45,9 @@ function jin.core.run() local current = previous while jin.core.running() do for _, e in pairs(jin.event.poll()) do - if e.type == "keydown" then + if e.type == "KeyDown" then jin.keyboard.set(e.key, true) - elseif e.type == "keyup" then + elseif e.type == "KeyUp" then jin.keyboard.set(e.key, false) end call(jin.core.onEvent, e) @@ -78,6 +78,7 @@ jin.core.setHandler = function(handler) jin.core.onDraw = handler.onDraw end +-- TODO: ĬÈÏͼ±êÓÃbase64 jin.nogame = { cs = 64, sw = jin.graphics.getWidth(), -- cgit v1.1-26-g67d0