Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support keypad in Linux #71

Open
tkzv opened this issue Apr 24, 2021 · 0 comments
Open

Support keypad in Linux #71

tkzv opened this issue Apr 24, 2021 · 0 comments

Comments

@tkzv
Copy link

tkzv commented Apr 24, 2021

The example does not work with keypad arrows and Enter in Linux. Could you add support for them? This requires changing 3 conditions in main.lua:

In function love.update replace
love.keyboard.isDown('up') with love.keyboard.isDown('up') or love.keyboard.isDown('kp8')
love.keyboard.isDown('down') with love.keyboard.isDown('down') or love.keyboard.isDown('kp2')

In function love.keypressed replace
key == 'enter' or key == 'return' with key == 'enter' or key == 'return' or key == 'kpenter'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant