Develop 1.8 #20

Merged
Kan18 merged 242 commits from develop-1.8 into master-1.8 2019-11-10 20:52:08 -05:00
Showing only changes of commit 6e6d4b81cd - Show all commits

View File

@@ -10,6 +10,17 @@ local modifiers = Util.transpose {
keys.leftAlt, keys.rightAlt,
}
if not keyboard then -- not running under Opus OS
keyboard = { state = { } }
local Event = require('opus.event')
Event.on({ 'key', 'key_up' }, function(event, code)
if modifiers[code] then
keyboard.state[code] = event == 'key'
end
end)
end
local input = { }
function input:modifierPressed()