Skip to content

Conversation

@kasmacioma
Copy link
Collaborator

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines [hm, guidelines???]
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features) [haha, no]
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
  • New naming for KeyboardKey and MouseButton members (simpler and more convenient)
  • SymRecorder (records all printables events to string when needed)
  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)?

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    You'll have to replace old keyboard and mouse button with new one

  • Other information:

Anatoly Pitikin added 6 commits September 25, 2019 23:58
Use PascalCase (CamelCase) instead of UpperCase.

For keys naming was used https://docs.rs/sdl2/0.32.2/sdl2/keyboard/enum.Scancode.html
And store only last event char ('\0' if event is not printable)
SymRecorder [disabled by default] records all chars from events on demand (after it was activated) to printable user-friendly (means no more '\b' chars and all 'Enter' will be converted to "\r\n") string. 'Backspace' deletes last char.
@kasmacioma kasmacioma self-assigned this Oct 1, 2019
@kasmacioma kasmacioma requested a review from LumpBloom7 October 1, 2019 19:55
@kasmacioma kasmacioma added the enhancement New feature or request label Oct 1, 2019
@kasmacioma
Copy link
Collaborator Author

Maybe later I'll implement event recorder (it may be useful for key combinations in a game).

@kasmacioma kasmacioma merged commit 66f130d into LumpBloom7:feature/InputManager Oct 2, 2019
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

Successfully merging this pull request may close these issues.

2 participants