Skip to content

Add nextRepeatTime and fix key repeat logic and backspace burst deleting characters#352

Open
MrS-ibra wants to merge 1 commit intoGeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:fix-key-repeat-timing
Open

Add nextRepeatTime and fix key repeat logic and backspace burst deleting characters#352
MrS-ibra wants to merge 1 commit intoGeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:fix-key-repeat-timing

Conversation

@MrS-ibra
Copy link

fixes the issue where pressing/holding backspace would delete multiple characters at once. The old logic rewound keyDownTimeMsec into the past which made the repeat check think several intervals had already passed. This PR uses nextRepeatTimeMsec and schedules repeats based on real time.

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