Instead of having four times almost the same function, why don't you put it in the class?
You would need to specify which key is handled by which button.
And you still read the video four times per frame.
If I remove the image loading / displaying and the video reading / displaying, I can see your buttons.
Perhaps the video is hiding them.
You would need to specify which key is handled by which button.
And you still read the video four times per frame.
If I remove the image loading / displaying and the video reading / displaying, I can see your buttons.
Perhaps the video is hiding them.