mirror of
https://github.com/kepler155c/opus
synced 2025-10-22 11:17:40 +00:00
keyboard handling
This commit is contained in:
@@ -39,11 +39,11 @@ function input:toCode(ch, code)
|
||||
|
||||
-- the key-up event for alt keys is not generated if the minecraft
|
||||
-- window loses focus
|
||||
--
|
||||
-- if keyboard.state[keys.leftAlt] or keyboard.state[keys.rightAlt] or
|
||||
-- code == keys.leftAlt or code == keys.rightAlt then
|
||||
-- table.insert(result, 'alt')
|
||||
-- end
|
||||
|
||||
if keyboard.state[keys.leftAlt] or keyboard.state[keys.rightAlt] or
|
||||
code == keys.leftAlt or code == keys.rightAlt then
|
||||
table.insert(result, 'alt')
|
||||
end
|
||||
|
||||
if keyboard.state[keys.leftShift] or keyboard.state[keys.rightShift] or
|
||||
code == keys.leftShift or code == keys.rightShift then
|
||||
|
Reference in New Issue
Block a user