KendallDoesCoding / Choose-Your-Own-Adventure-Game

A simple Choose Your Own Adventure Game created using Python.
MIT License
15 stars 25 forks source link

[FEAT] Support for K_KP_ENTER: #72

Open Naturalbornhippy opened 1 year ago

Naturalbornhippy commented 1 year ago

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 commented 1 year ago

Decided to integrate it into #70