raylib icon indicating copy to clipboard operation
raylib copied to clipboard

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

Open Angluca opened this issue 1 year ago • 2 comments

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 avatar May 06 '24 21:05 Angluca

@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...

raysan5 avatar May 07 '24 08:05 raysan5

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 :)

Angluca avatar May 07 '24 09:05 Angluca

Closing this issue, no mechanism is exposed at the moment to force/generate input events by user.

raysan5 avatar Aug 25 '24 21:08 raysan5