1pass.lua
changeset 19 bee74433ed86
parent 18 e7821efc78f6
child 21 9884f4078c68
equal deleted inserted replaced
18:e7821efc78f6 19:bee74433ed86
   258 end
   258 end
   259 
   259 
   260 local passwordUnlockTime = nil
   260 local passwordUnlockTime = nil
   261 
   261 
   262 function keyhookPressed()  -- not local! Called from C!
   262 function keyhookPressed()  -- not local! Called from C!
   263     if keyhookRunning then
   263 print("keyhookPressed: running==" .. tostring(keyhookRunning))
   264         return
   264 --    if keyhookRunning then
   265     end
   265 --        return
       
   266 --    end
   266 
   267 
   267     keyhookRunning = true
   268     keyhookRunning = true
   268 
   269 
   269     if passwordUnlockTime ~= nil then
   270     if passwordUnlockTime ~= nil then
   270         local now = os.time()
   271         local now = os.time()