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

[FEAT] Support for K_KP_ENTER: #72

Open
Naturalbornhippy opened this issue Oct 5, 2023 · 1 comment
Open

[FEAT] Support for K_KP_ENTER: #72

Naturalbornhippy opened this issue Oct 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Naturalbornhippy
Copy link

Naturalbornhippy commented Oct 5, 2023

It happens to me while playing/coding that i press the "wrong" enter key - so i think it would be good to add the 2nd enter key (at least if you have a key pad)

Describe the solution you'd like
I want to change this line:
if event.type == pygame.KEYDOWN and event.key == pygame.K_RETURN:
to
if event.type == pygame.KEYDOWN and (event.key == pygame.K_RETURN or event.key == pygame.K_KP_ENTER):

You could go with a 2nd if statement, but i think we can still understand this line.

Should i create PR for this?

@Naturalbornhippy
Copy link
Author

Decided to integrate it into #70

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

No branches or pull requests

2 participants