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

Make use of window close and add another ESC keycode #79

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

possibly-not
Copy link

@possibly-not possibly-not commented Dec 6, 2021

HandleInput() returns 0 when receiving a window close request, this wasn't used before so the only way of closing the program was by pressing escape.

And getting on to the escape key, on my Linux machine keycode 65307 is the value for ESC so I added this to HandleKey
As well I moved the keycode print so you can see the esc keycode before it quits.

@possibly-not possibly-not changed the title Add another ESC keycode and shuffle print Make use of window close and add another ESC keycode Dec 6, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant