-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix keyboard sensor release key delay.
Previously when a key raise a release event any logic brick handling it was activated the next frame. This was due to the fact that we was comparing the previous state with the current state, which mean that the correct value comes always a frame later. To fix this issue the comparaison was removed and replaced by a simple check for events count to enable the sensor. And by a check with the last state to set the sensor positive or not. To get the last state the function SCA_InputEvent::End(value) is introduced.
- Loading branch information
1 parent
859783a
commit 5db8fc4
Showing
3 changed files
with
44 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters