TannerRogalsky / love.js

LÖVE ported to the web using Emscripten
MIT License
493 stars 53 forks source link

Scancode doesn't work #25

Open spectrenoir06 opened 8 years ago

spectrenoir06 commented 8 years ago

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
TannerRogalsky commented 8 years ago

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

TannerRogalsky commented 8 years ago

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