Hello! I'm trying to play a video as a cutscene and when the player press "esc" it stops. But when the video starts to play, the game window loses its focus, so, it requires the user to click the window and then press esc. When in fullscreen there is not how to 'skip video' using this method (because you can't click the window). Am I doing something wrong?
That's the code:
if not GetVideoPlaying() and not isVideoPlayed[1]
LoadVideo(videoName[1])
PlayVideo()
isVideoPlayed[1]=1
endif
if isVideoPlayed[1]
if not GetVideoPlaying() or GetRawKeyPressed(27)
DeleteVideo()
RUNTIME_STATE=stateGAME
endif
endif
"isVideoPlayed" is a control I am using to avoid loading two times the same video.
Can anyone help?