installer branches

This commit is contained in:
kepler155c@gmail.com 2018-01-24 18:55:21 -05:00
parent 8879f91c62
commit 742d1337a8
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
local Util = require('util')
local keyboard = _G.device.keyboard
local keyboard = _G.device and _G.device.keyboard
local keys = _G.keys
local os = _G.os
@ -14,6 +14,10 @@ local input = {
state = { },
}
if not keyboard then
keyboard = { state = input.state }
end
function input:modifierPressed()
return keyboard.state[keys.leftCtrl] or
keyboard.state[keys.rightCtrl] or