mirror of
https://github.com/kepler155c/opus
synced 2025-11-26 12:04:52 +00:00
installer branches
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
local Util = require('util')
|
local Util = require('util')
|
||||||
|
|
||||||
local keyboard = _G.device.keyboard
|
local keyboard = _G.device and _G.device.keyboard
|
||||||
local keys = _G.keys
|
local keys = _G.keys
|
||||||
local os = _G.os
|
local os = _G.os
|
||||||
|
|
||||||
@@ -14,6 +14,10 @@ local input = {
|
|||||||
state = { },
|
state = { },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not keyboard then
|
||||||
|
keyboard = { state = input.state }
|
||||||
|
end
|
||||||
|
|
||||||
function input:modifierPressed()
|
function input:modifierPressed()
|
||||||
return keyboard.state[keys.leftCtrl] or
|
return keyboard.state[keys.leftCtrl] or
|
||||||
keyboard.state[keys.rightCtrl] or
|
keyboard.state[keys.rightCtrl] or
|
||||||
|
|||||||
Reference in New Issue
Block a user