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

Fix Linux Key Events #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JetStarBlues
Copy link

Fixes the following issues:

  1. Add KeyReleaseMask to the event mask so that key releases can be detected
  2. Since a value of 0 indicates that a button is pressed in the Game Boy, change the "set button state" logic to ( xev.type == KeyPress ) ? 0 : 1
  3. Use key symbols instead of key codes for more portable key detection

A previous pull request has been made for this issue (a319a7c). It addresses issues 1 and 2 with a slightly different approach.

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.

1 participant