love.js icon indicating copy to clipboard operation
love.js copied to clipboard

Scancode doesn't work

Open spectrenoir06 opened this issue 9 years ago • 2 comments

love.keyboard.isScancodeDown and love.keypressed doesn't work

Code

function love.keypressed( key, scancode, isrepeat )
    print( key, scancode, isrepeat )
end

Love 10.0 on linux with (azerty keyboard)

a   q   false
z   w   false
e   e   false
r   r   false
t   t   false
y   y   false

Love.js with azerty keyboard

a   a   false
z   z   false
e   e   false
r   r   false
t   t   false
y   y   false

spectrenoir06 avatar Feb 14 '16 16:02 spectrenoir06

Good catch, thanks! It should be possible to do scancodes in the browser so I will look into why it's not working.

TannerRogalsky avatar Feb 14 '16 16:02 TannerRogalsky

I have opened a bug report on SDL's bug tracker: https://bugzilla.libsdl.org/show_bug.cgi?id=3259

TannerRogalsky avatar Feb 15 '16 18:02 TannerRogalsky