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

[rcore] Replay record finish can't stop move (always keydown) #3964

Open
Angluca opened this issue May 6, 2024 · 2 comments
Open

[rcore] Replay record finish can't stop move (always keydown) #3964

Angluca opened this issue May 6, 2024 · 2 comments

Comments

@Angluca
Copy link

Angluca commented May 6, 2024

my test example
You can test replay record , Replay finish must input move key(A/D or LEFT/RIGHT) if I want stop
This is I learning raylib core_automation_events example

And how to disable player keyboard input when I replay record time. T_T Sorry I'm newbie, Don't know more...

@Angluca Angluca changed the title Replay record finish can't stop move (always keydown) [rcore] Replay record finish can't stop move (always keydown) May 6, 2024
@raysan5
Copy link
Owner

raysan5 commented May 7, 2024

@Angluca Thanks for reporting! At this moment it's not possible to disable user inputs from raylib but it could be a feature to consider... the only issue I see is how they could be enabled again if no inputs are processed? Maybe allowing a special key combination to re-enable...
About this issue, again, there is no mechanism on raylib exposed to users to reset key states, it is always processed internally. Some alternatives are being considered in that regards...

@Angluca
Copy link
Author

Angluca commented May 7, 2024

Maybe can add function InputKeyDown/Press/Up(...) easy fix it
After call InputKeyPress(KEY_LEFT); InputKeyPress(KEY_RIGHT); // not need player input left/right key now when play record finish :)

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

No branches or pull requests

2 participants