problem with UP key
Posted: Wed Jun 28, 2023 3:56 am
I think maybe the problem is my keyboard, some very standard usb keyboard I would believe. It seem I can trap as many isDown events as I need using the numpad but when it come to navigation key, the UP key is problematic. For instance I can get all 4 directional key from the numpad with even the space bar, but when it come to navigation key I cannot get all key down event, the UP one wont show if there is already three key down. I'm using 10.2 and did that small program to highlight the problem.
Thank you, cheers 
Code: Select all
function love.load()
love.window.setMode(320,240,{vsync=true, fullscreen=false; resizable=false})
love.graphics.setColor( 255, 255, 255, 255)
end
function love.draw()
if (love.keyboard.isDown( "up" )) then love.graphics.print('UP', 10, 10) end
if (love.keyboard.isDown( "down" )) then love.graphics.print('DOWN', 10, 20) end
if (love.keyboard.isDown( "left" )) then love.graphics.print('LEFT', 10, 30) end
if (love.keyboard.isDown( "right" )) then love.graphics.print('RIGHT', 10, 40) end
if (love.keyboard.isDown( "space" )) then love.graphics.print('SPACE', 10, 50) end
if (love.keyboard.isDown( "kp6" )) then love.graphics.print('KP6 (right)', 10, 60) end
if (love.keyboard.isDown( "kp2" )) then love.graphics.print('KP2 (down)', 10, 70) end
if (love.keyboard.isDown( "kp8" )) then love.graphics.print('KP8 (up)', 10, 80) end
if (love.keyboard.isDown( "kp4" )) then love.graphics.print('KP4 (left)', 10, 90) end
end
