Skip to content

Increment repeat counter when injecting key events - #1519

Closed
xeropresence wants to merge 3 commits into
Genymobile:devfrom
xeropresence:repeatCounter
Closed

xeropresence wants to merge 3 commits into
Genymobile:devfrom
xeropresence:repeatCounter

Conversation

@xeropresence

Copy link
Copy Markdown
Contributor

Improves #1013

Change function order so its consistent throughout the program -> action,keycode,metastate,repeat
rom1v pushed a commit that referenced this pull request Jun 19, 2020
Initialize "repeat" count on key events.

PR #1519 <#1519>
Refs #1013 <#1013>

Signed-off-by: Romain Vimont <rom@rom1v.com>
@rom1v

rom1v commented Jun 19, 2020 •

Copy link
Copy Markdown
Collaborator

Thank you 👍

I rebased on current dev, squashed your commits, and applied the following changes:

  • move "repeat" global variable to the input manager structure"
  • always reorder repeat before metastate (in method parameters and serialization) for consistency (this is the order used both by KeyEvent on Android and SDL_KeyboardEvent in SDL)
  • fix unit tests

The resulting commit is repeat.

Please review and test :)

PS: the Author in your commits is xeropresence <3128949+xeropresence@users.noreply.github.com>. Do you have a better identity?

@xeropresence

Copy link
Copy Markdown
Contributor Author

Sorry for the long wait, I've tested the branch and everything seems to be working as expected.

I prefer to remain as private as possible ;)

rom1v pushed a commit that referenced this pull request Jun 27, 2020
Initialize "repeat" count on key events.

PR #1519 <#1519>
Refs #1013 <#1013>

Signed-off-by: Romain Vimont <rom@rom1v.com>
@rom1v

rom1v commented Jun 27, 2020

Copy link
Copy Markdown
Collaborator

Merged into dev: 3c1ed5d

@rom1v rom1v closed this Jun 27, 2020
lingyicute pushed a commit to lingyicute/scrcpy that referenced this pull request Nov 19, 2026
Initialize "repeat" count on key events.

PR Genymobile#1519 <Genymobile#1519>
Refs Genymobile#1013 <Genymobile#1013>

Signed-off-by: Romain Vimont <rom@rom1v.com>
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