if i held lshift+w and press space key event will just not fire
it does not relater to my project, i tried in new one and have same issue
here is a simple code to reproduce this bug
on screenshot i marked what keys i pressed together, and love.keypressed just not executing if i hold lshift+w
my game is 3d and this key combination maybe the most classical and crucial - held left shift to sprint and w to go forward and press space to - and it doesn't work
lshift + any other key + space works fine
Code: Select all
local FONT = love.graphics.newFont (18, 'mono')
local FONT_LIHE_H = FONT:getHeight ()
local LINES = {}
love.keypressed = function (key, code)
if key == 'escape' then
love.event.push ('quit')
return
end
table.insert (LINES, string.format ('%06d\t\t%s\t\t%s', love.timer.getTime () * 1000, key, code))
end
love.update = function (dt)
if #LINES > 25 then
table.remove (LINES, 1)
end
end
love.draw = function ()
love.graphics.setFont (FONT)
local line_h = FONT:getLineHeight ()
local n = #LINES
for i = 0, n - 1 do
love.graphics.print (LINES [n - i], 20, 20 + FONT_LIHE_H * i)
end
end