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

Reworked the keymap so it is more flexible, so to support modifiers #11

Closed
wants to merge 8 commits into from

Conversation

vinz6751
Copy link
Contributor

@vinz6751 vinz6751 commented Jan 3, 2021

Everything is explained in the updated help files.
Removed SDL 1.2 support as per recent conversations on the hatari mailing list.

…at include modifiers.

Everything is explained in the updated help files.
Removed SDL 1.2 support as per recent conversations on the hatari mailing list.
…at include modifiers.

Everything is explained in the updated help files.
Removed SDL 1.2 support as per recent conversations on the hatari mailing list.
@huth
Copy link
Member

huth commented May 29, 2021

Hi Vinz! Sorry for the long delay - I tried to review this a couple of times, but it is incredibly hard to digest in the current state. Could you please try to break up the big patch in smaller, logical chunks that make it clear how you got there? Also the current merge request seems to be merged with an older version on your side already, so it is not clear which is the really recent version of the patch. Please rebase cleanly to the master branch first.

Apart from that, here are some quick notes that I spotted while looking at your patch:

  • #define MAX_SDLK_SCANCODES 284+1 is certainly wrong, my SDL headers have already higher values than that. SDL_NUM_SCANCODES is likely what you want?
  • There are potential buffer overflows in your new code, e.g. the strcpy(hostSpec,token) or strcpy(guestSpec,token)
  • Using "return -1; /* Success */" is very unconventional and confusing - either return 0 for success and a proper negative error code otherwise, or use "true" for success and "false" for failure.

@huth huth closed this May 29, 2021
@vinz6751
Copy link
Contributor Author

vinz6751 commented May 29, 2021 via email

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.

2 participants